412492, r=sayrer, a=schrep - Update hCard testcases so they don't access the web
authormkaply@us.ibm.com
Wed, 16 Jan 2008 08:30:37 -0800
changeset 10335 2667182fbb7aac2aac71323686d3ff6a4a38d5ac
parent 10334 0299360df4d6b3148e2792d37fb4704c962df944
child 10336 fe17b0012d38d2931c7eac0ddc014adafee395ab
push idunknown
push userunknown
push dateunknown
reviewerssayrer, schrep
bugs412492
milestone1.9b3pre
412492, r=sayrer, a=schrep - Update hCard testcases so they don't access the web
toolkit/components/microformats/tests/Makefile.in
toolkit/components/microformats/tests/test_Microformats_hCard.html
--- a/toolkit/components/microformats/tests/Makefile.in
+++ b/toolkit/components/microformats/tests/Makefile.in
@@ -40,16 +40,15 @@ srcdir    = @srcdir@
 VPATH     = @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
 include $(topsrcdir)/config/rules.mk
 
 _TEST_FILES = \
 		test_Microformats.html \
+		test_Microformats_hCard.html \
 		test_Microformats_geo.html \
 		test_Microformats_hCalendar.html \
 		$(NULL)
 
-# disabled test_Microformats_hCard.html because of random network problems.
-
 libs::	$(_TEST_FILES)
 	$(INSTALL) $^ $(DEPTH)/_tests/testing/mochitest/tests/browser/microformats/test
--- a/toolkit/components/microformats/tests/test_Microformats_hCard.html
+++ b/toolkit/components/microformats/tests/test_Microformats_hCard.html
@@ -83,23 +83,23 @@
       <span class="given-name">John</span> <span class="family-name">Doe</span></span>
       <a class="url" href="http://example.com/foo">my website</a>
       <a class="url" href="http://example.com/bar">my other website</a>
   </p>
 
   <p class="vcard" id="12-img-src-url">
     <span class="fn n"><span class="given-name">John</span> <span class="family-name">Doe</span></span>
     <!-- take the @src, ignore the @type -->
-    <img class="url" src="http://example.org/picture.png" type="image/png" />
+    <img class="url" src="http://localhost:8888/tests/browser/microformats/test/picture.png" type="image/png" />
   </p>
 
   <p class="vcard" id="13-photo-logo">
     <span class="fn n"><span class="given-name">John</span> <span class="family-name">Doe</span></span>
     <!-- take the @src, ignore the @type -->
-    <img class="photo logo" src="http://example.org/picture.png" type="image/png" />
+    <img class="photo logo" src="http://localhost:8888/tests/browser/microformats/test/picture.png" type="image/png" />
   </p>
 
   <p class="vcard" id="14-img-src-data-url">
     <span class="fn n"><span class="given-name">John</span> <span class="family-name">Doe</span></span>
     <img class="photo logo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAASUExURf///8zMzJmZmWZmZjMzMwAAAPOPemkAAAM1SURBVHjaYmBgYGBkYQUBFkYWFiCPCchixQAMCCZAACF0MAMVM4K4TFh0IGsBCCAkOxhYmBnAAKaHhZkZmxaAAGJgYIbpYGBihGgBWsTMzMwE4jIhaWGAYoAAYmCECDExYAcwGxkg5oNIgABigDqLARdgZmGB2wICrKwAAcSA3xKgIxlZ0PwCEEAMBCxhgHoWSQtAADFAAxgfYEJ1GEAAQbQw4tUCsocBYQVAADEgu4uRkREeUCwszEwwLhOKLQABhNDCBA4aSDgwwhIAJKqYUPwCEEAMUK/AUwnc9aywJMCI7DAgAAggBohZ8JTBhGIJzCoWZL8ABBCYidAB8RUjWppkYUG2BSCAGMDqEMZiswUtXgACiAHsFYixTMywGGLGpgUWYgABxAA2mQkWCMyMqFoYmdD8ACQAAogBHJHMrCxg1cyIiICmCkYWDFsAAgiihYmZCewFFpR0BfI3LLch+QUggBiQ0iQjEyMDmh54qCBlUIAAYsCRJsElADQvgWKTlRGeKwECiAF3XgGmMEYQYADZzcoA9z5AAMG9RQCAtEC9DxBADFiyFyMjVi0wABBAWLQwQdIiuhYGWJIACCBg+KKUJ9BoBRdS2LQALQMIIGDQIEmwAO1kYcVWHCDZAhBAqFqYmOAxj2YNtAwDAYAAYmDEiBYWzHKKkRERYiwAAYSphZEZwxZGZiZQVEJTJkAAMTCyokc7M5oORlC5wcoEjxeAAAJqQXU0UB6W5WFmABMtEzMi1wEEEFAbE0YyAUuzMMEsYQalMkQSBQggUDmNPU3C9IA4LCxI+QUggEBiKOU8yExgqccCL3chnkPKlQABhGo6ejHBDKmdUHMlQAAhhQvQaGZGkBIkjcAMywLmI+VKgABCSowsTJhZkhlWXiBpAQggYBqBZl9GVOdBcz0LZqEEEEAMqLULMBLg1THWog9IAwQQA0qiZcRW5aPbAhBADCg1El4tMAAQQAxoiZYZXnTh1AIQQAzo2QlYpDDjcBgrxGEAAcSAJTthswmiBUwDBBC2GpkZJTaRvQ+mAQKIAUuuxdZWQvILQABBmSxMjBj5EpcWgACCMoFOYYSpZyHQHgMIMACt2hmoVEikCQAAAABJRU5ErkJggg=="/>
   </p>
 
   <p class="vcard" id="15-honorific-additional-single">
@@ -127,28 +127,28 @@
 
   <p class="vcard" id="17-email-not-uri">
     <span class="fn">John Doe</span>
     <span class="email">john@example.com</span>
   </p>
 
   <p class="vcard" id="18-object-data-http-uri">
     <span class="fn">John Doe</span>
-    <object class="url photo logo" data="http://example.com/foo.png" type="image/png"></object>
+    <object class="url photo logo" data="http://localhost:8888/tests/browser/microformats/test/picture.png" type="image/png"></object>
   </p>
 
   <p class="vcard" id="19-object-data-data-uri">
     <span class="fn">John Doe</span>
     <object class="photo logo" data="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAASUExURf///8zMzJmZmWZmZjMzMwAAAPOPemkAAAM1SURBVHjaYmBgYGBkYQUBFkYWFiCPCchixQAMCCZAACF0MAMVM4K4TFh0IGsBCCAkOxhYmBnAAKaHhZkZmxaAAGJgYIbpYGBihGgBWsTMzMwE4jIhaWGAYoAAYmCECDExYAcwGxkg5oNIgABigDqLARdgZmGB2wICrKwAAcSA3xKgIxlZ0PwCEEAMBCxhgHoWSQtAADFAAxgfYEJ1GEAAQbQw4tUCsocBYQVAADEgu4uRkREeUCwszEwwLhOKLQABhNDCBA4aSDgwwhIAJKqYUPwCEEAMUK/AUwnc9aywJMCI7DAgAAggBohZ8JTBhGIJzCoWZL8ABBCYidAB8RUjWppkYUG2BSCAGMDqEMZiswUtXgACiAHsFYixTMywGGLGpgUWYgABxAA2mQkWCMyMqFoYmdD8ACQAAogBHJHMrCxg1cyIiICmCkYWDFsAAgiihYmZCewFFpR0BfI3LLch+QUggBiQ0iQjEyMDmh54qCBlUIAAYsCRJsElADQvgWKTlRGeKwECiAF3XgGmMEYQYADZzcoA9z5AAMG9RQCAtEC9DxBADFiyFyMjVi0wABBAWLQwQdIiuhYGWJIACCBg+KKUJ9BoBRdS2LQALQMIIGDQIEmwAO1kYcVWHCDZAhBAqFqYmOAxj2YNtAwDAYAAYmDEiBYWzHKKkRERYiwAAYSphZEZwxZGZiZQVEJTJkAAMTCyokc7M5oORlC5wcoEjxeAAAJqQXU0UB6W5WFmABMtEzMi1wEEEFAbE0YyAUuzMMEsYQalMkQSBQggUDmNPU3C9IA4LCxI+QUggEBiKOU8yExgqccCL3chnkPKlQABhGo6ejHBDKmdUHMlQAAhhQvQaGZGkBIkjcAMywLmI+VKgABCSowsTJhZkhlWXiBpAQggYBqBZl9GVOdBcz0LZqEEEEAMqLULMBLg1THWog9IAwQQA0qiZcRW5aPbAhBADCg1El4tMAAQQAxoiZYZXnTh1AIQQAzo2QlYpDDjcBgrxGEAAcSAJTthswmiBUwDBBC2GpkZJTaRvQ+mAQKIAUuuxdZWQvILQABBmSxMjBj5EpcWgACCMoFOYYSpZyHQHgMIMACt2hmoVEikCQAAAABJRU5ErkJggg==" />
   </p>
 
   <p class="vcard" id="20-image-alt">
 <!-- only testing 'fn' here, but you should be able to parse any text value out of the img@alt -->
 <!-- also note, the fn should only be used to infer n, when there's no explicit n in the hcard -->
-    <img class="fn photo logo" src="http://example.com/foo.png" alt="John Doe" />
+    <img class="fn photo logo" src="http://localhost:8888/tests/browser/microformats/test/picture.png" alt="John Doe" />
   </p>
   
   <div class="vcard" id="21-tel">
     <p class="fn">John Doe</p>v
     <p class="tel">+1.415.555.1231</p>
     <p class="tel">
       <span class="type">home</span>
       <span class="value">+1 415 555 1232</span>
@@ -364,25 +364,25 @@
   <div class="vcard" id="30-fn-org.1">
     <div class="fn org">W3C</div>
   </div>
   <div class="vcard" id="30-fn-org.2">
     <div class="fn">Dan Connolly</div>
     <div class="org">W3C</div>
   </div>
   <div class="vcard" id="30-fn-org.3">
-    <img class="fn" src="http://www.w3.org/Icons/w3c_home" alt="W3C" />
+    <img class="fn" src="http://localhost:8888/tests/browser/microformats/test/picture.png" alt="W3C" />
     <div class="org">W3C</div>
   </div>
   <div class="vcard" id="30-fn-org.4">
-    <img class="fn org" src="http://www.w3.org/Icons/w3c_home"
+    <img class="fn org" src="http://localhost:8888/tests/browser/microformats/test/picture.png"
          alt="World Wide Web Consortium" />
   </div>
   <div class="vcard" id="30-fn-org.5">
-    <object data="http://www.w3.org/Icons/w3c_home">
+    <object data="http://localhost:8888/tests/browser/microformats/test/w3c_home">
       <abbr class="fn org" title="World Wide Web Consortium">W3C</abbr>
     </object>
   </div>
   
   <p id="email1"><a href="mailto:correct@example.com" class="email">my email</a></p>
   <p id="email2"><a href="mailto:incorrect@example.com" class="email">my email</a></p>
   <div class="vcard" id="31-include.1">
     <a class="url fn" href="http://suda.co.uk/">Brian Suda</a>
@@ -425,17 +425,17 @@
       <area class="org" href="http://example.com/" alt="Joe Public" />
     </map>
   </div>
   <div class="vcard" id="33-area.3">
     <map id="mailto-test-3">
       <area class="fn email" href="mailto:joe@example.com" alt="Joe Public"/>
       <area class="url" href="http://example.com/" alt="my website!" />
     </map>
-    <img class="org" src="http://example.com/" alt="Joe Public" />
+    <img class="org" src="http://localhost:8888/tests/browser/microformats/test/picture.png" alt="Joe Public" />
   </div>
   <div class="vcard" id="33-area.4">
     <map id="mailto-test-4">
       <area class="fn email" href="mailto:joe@example.com" alt="Joe Public"/>
       <area class="url" href="http://example.com/" alt="my website!" />
     </map>
     <div class="org">Joe Public</div>
   </div>
@@ -473,17 +473,17 @@
     <span class="title">Microformat Brainstormer</span>
   </div>
 
   <p class="vcard" id="36-categories.1">
     <span class="fn">john doe</span>,
     <abbr class="category" title="C1">C1a</abbr>
     <a class="category" href="http://example.com" title="C2">C2a</a>
     <a class="category" href="http://example.com/C3" rel="tag" title="C3a">C3b</a>
-    <img class="category" src="http://example.com/" alt="C4"/>
+    <img class="category" src="http://localhost:8888/tests/browser/microformats/test/picture.png" alt="C4"/>
     <a class="category" href="http://example.com/C5/" rel="tag" title="C5a">C5b</a>
     <a class="category" href="http://example.com/C6?tag=false" rel="tag" title="C6a">C6b</a>
     <a class="category" href="http://example.com/C7#anchor" rel="tag" title="C7a">C7b</a>
     <a class="category" href="http://example.com/C8?tag=trailing-slash/" rel="tag" title="C8a">C8b</a>
     <a class="category" href="http://example.com/C9/?tag=trailing-slash/" rel="tag" title="C9a">C9b</a>
   </p>
   <div class="vcard" id="36-categories.2">
     <span class="fn n">
@@ -511,21 +511,21 @@
   </p>
 
   <div class="vcard" id="38-uid.1">
     <span class="fn">Ryan King</span>
     <a class="url uid" href="http://theryanking.com/contact/">My other hCard</a>
   </div>
   <div class="vcard" id="38-uid.2">
     <span class="fn">Ryan King</span>
-    <object class="url uid" data="http://theryanking.com/contact/">My other hCard</object>
+    <object class="url uid" data="http://localhost:8888/tests/browser/microformats/test/contact/">My other hCard</object>
   </div>
   <div class="vcard" id="38-uid.3">
     <span class="fn">Ryan King</span>
-    <img class="url uid" src="http://theryanking.com/contact/" alt="my other hcard" />
+    <img class="url uid" src="http://localhost:8888/tests/browser/microformats/test/contact/" alt="my other hcard" />
   </div>
   <div class="vcard" id="38-uid.4">
     <span class="fn">Ryan King</span>
     <map id="foo"><area class="url uid" href="http://theryanking.com/contact/" alt="my other hcard" /></map>
   </div>
   
 </div>
 <pre id="test">
@@ -669,25 +669,25 @@ function test_hCard() {
   is(hcard.url[0], "http://example.com/foo", "11-multiple-urls - url");
   is(hcard.url[1], "http://example.com/bar", "11-multiple-urls - url");
 
   hcard = new hCard(document.getElementById("12-img-src-url"));
 
   is(hcard.fn, "John Doe", "12-img-src-url - fn");
   is(hcard.n["given-name"], "John", "12-img-src-url - given-name");
   is(hcard.n["family-name"], "Doe", "12-img-src-url - family-name");
-  is(hcard.url[0], "http://example.org/picture.png", "12-img-src-url - url");
+  is(hcard.url[0], "http://localhost:8888/tests/browser/microformats/test/picture.png", "12-img-src-url - url");
 
   hcard = new hCard(document.getElementById("13-photo-logo"));
 
   is(hcard.fn, "John Doe", "13-photo-logo - fn");
   is(hcard.n["given-name"], "John", "13-photo-logo - given-name");
   is(hcard.n["family-name"], "Doe", "13-photo-logo - family-name");
-  is(hcard.logo, "http://example.org/picture.png", "13-photo-logo - logo");
-  is(hcard.photo, "http://example.org/picture.png", "13-photo-logo - photo");
+  is(hcard.logo, "http://localhost:8888/tests/browser/microformats/test/picture.png", "13-photo-logo - logo");
+  is(hcard.photo, "http://localhost:8888/tests/browser/microformats/test/picture.png", "13-photo-logo - photo");
 
   hcard = new hCard(document.getElementById("14-img-src-data-url"));
 
   is(hcard.fn, "John Doe", "14-img-src-data-url - fn");
   is(hcard.n["given-name"], "John", "14-img-src-data-url - given-name");
   is(hcard.n["family-name"], "Doe", "14-img-src-data-url - family-name");
   is(hcard.logo, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAASUExURf///8zMzJmZmWZmZjMzMwAAAPOPemkAAAM1SURBVHjaYmBgYGBkYQUBFkYWFiCPCchixQAMCCZAACF0MAMVM4K4TFh0IGsBCCAkOxhYmBnAAKaHhZkZmxaAAGJgYIbpYGBihGgBWsTMzMwE4jIhaWGAYoAAYmCECDExYAcwGxkg5oNIgABigDqLARdgZmGB2wICrKwAAcSA3xKgIxlZ0PwCEEAMBCxhgHoWSQtAADFAAxgfYEJ1GEAAQbQw4tUCsocBYQVAADEgu4uRkREeUCwszEwwLhOKLQABhNDCBA4aSDgwwhIAJKqYUPwCEEAMUK/AUwnc9aywJMCI7DAgAAggBohZ8JTBhGIJzCoWZL8ABBCYidAB8RUjWppkYUG2BSCAGMDqEMZiswUtXgACiAHsFYixTMywGGLGpgUWYgABxAA2mQkWCMyMqFoYmdD8ACQAAogBHJHMrCxg1cyIiICmCkYWDFsAAgiihYmZCewFFpR0BfI3LLch+QUggBiQ0iQjEyMDmh54qCBlUIAAYsCRJsElADQvgWKTlRGeKwECiAF3XgGmMEYQYADZzcoA9z5AAMG9RQCAtEC9DxBADFiyFyMjVi0wABBAWLQwQdIiuhYGWJIACCBg+KKUJ9BoBRdS2LQALQMIIGDQIEmwAO1kYcVWHCDZAhBAqFqYmOAxj2YNtAwDAYAAYmDEiBYWzHKKkRERYiwAAYSphZEZwxZGZiZQVEJTJkAAMTCyokc7M5oORlC5wcoEjxeAAAJqQXU0UB6W5WFmABMtEzMi1wEEEFAbE0YyAUuzMMEsYQalMkQSBQggUDmNPU3C9IA4LCxI+QUggEBiKOU8yExgqccCL3chnkPKlQABhGo6ejHBDKmdUHMlQAAhhQvQaGZGkBIkjcAMywLmI+VKgABCSowsTJhZkhlWXiBpAQggYBqBZl9GVOdBcz0LZqEEEEAMqLULMBLg1THWog9IAwQQA0qiZcRW5aPbAhBADCg1El4tMAAQQAxoiZYZXnTh1AIQQAzo2QlYpDDjcBgrxGEAAcSAJTthswmiBUwDBBC2GpkZJTaRvQ+mAQKIAUuuxdZWQvILQABBmSxMjBj5EpcWgACCMoFOYYSpZyHQHgMIMACt2hmoVEikCQAAAABJRU5ErkJggg==", "14-img-src-data-url - logo");
   is(hcard.photo, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAASUExURf///8zMzJmZmWZmZj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EpcWgACCMoFOYYSpZyHQHgMIMACt2hmoVEikCQAAAABJRU5ErkJggg==", "14-img-src-data-url - photo");
@@ -720,36 +720,36 @@ function test_hCard() {
   is(hcard.n["family-name"], "Doe", "17-email-not-uri - family-name");
   is(hcard.email[0].value, "john@example.com", "17-email-not-uri - email");
 
   hcard = new hCard(document.getElementById("18-object-data-http-uri"));
 
   is(hcard.fn, "John Doe", "18-object-data-http-uri - fn");
   is(hcard.n["given-name"], "John", "18-object-data-http-uri - given-name");
   is(hcard.n["family-name"], "Doe", "18-object-data-http-uri - family-name");
-  is(hcard.logo, "http://example.com/foo.png", "18-object-data-http-uri - logo");
-  is(hcard.photo, "http://example.com/foo.png", "18-object-data-http-uri - photo");
-  is(hcard.url, "http://example.com/foo.png", "18-object-data-http-uri - url");
+  is(hcard.logo, "http://localhost:8888/tests/browser/microformats/test/picture.png", "18-object-data-http-uri - logo");
+  is(hcard.photo, "http://localhost:8888/tests/browser/microformats/test/picture.png", "18-object-data-http-uri - photo");
+  is(hcard.url, "http://localhost:8888/tests/browser/microformats/test/picture.png", "18-object-data-http-uri - url");
 
   hcard = new hCard(document.getElementById("19-object-data-data-uri"));
 
   is(hcard.fn, "John Doe", "19-object-data-data-uri - fn");
   is(hcard.n["given-name"], "John", "19-object-data-data-uri - given-name");
   is(hcard.n["family-name"], "Doe", "19-object-data-data-uri - family-name");
   is(hcard.logo, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAASUExURf///8zMzJmZmWZmZjMzMwAAAPOPemkAAAM1SURBVHjaYmBgYGBkYQUBFkYWFiCPCchixQAMCCZAACF0MAMVM4K4TFh0IGsBCCAkOxhYmBnAAKaHhZkZmxaAAGJgYIbpYGBihGgBWsTMzMwE4jIhaWGAYoAAYmCECDExYAcwGxkg5oNIgABigDqLARdgZmGB2wICrKwAAcSA3xKgIxlZ0PwCEEAMBCxhgHoWSQtAADFAAxgfYEJ1GEAAQbQw4tUCsocBYQVAADEgu4uRkREeUCwszEwwLhOKLQABhNDCBA4aSDgwwhIAJKqYUPwCEEAMUK/AUwnc9aywJMCI7DAgAAggBohZ8JTBhGIJzCoWZL8ABBCYidAB8RUjWppkYUG2BSCAGMDqEMZiswUtXgACiAHsFYixTMywGGLGpgUWYgABxAA2mQkWCMyMqFoYmdD8ACQAAogBHJHMrCxg1cyIiICmCkYWDFsAAgiihYmZCewFFpR0BfI3LLch+QUggBiQ0iQjEyMDmh54qCBlUIAAYsCRJsElADQvgWKTlRGeKwECiAF3XgGmMEYQYADZzcoA9z5AAMG9RQCAtEC9DxBADFiyFyMjVi0wABBAWLQwQdIiuhYGWJIACCBg+KKUJ9BoBRdS2LQALQMIIGDQIEmwAO1kYcVWHCDZAhBAqFqYmOAxj2YNtAwDAYAAYmDEiBYWzHKKkRERYiwAAYSphZEZwxZGZiZQVEJTJkAAMTCyokc7M5oORlC5wcoEjxeAAAJqQXU0UB6W5WFmABMtEzMi1wEEEFAbE0YyAUuzMMEsYQalMkQSBQggUDmNPU3C9IA4LCxI+QUggEBiKOU8yExgqccCL3chnkPKlQABhGo6ejHBDKmdUHMlQAAhhQvQaGZGkBIkjcAMywLmI+VKgABCSowsTJhZkhlWXiBpAQggYBqBZl9GVOdBcz0LZqEEEEAMqLULMBLg1THWog9IAwQQA0qiZcRW5aPbAhBADCg1El4tMAAQQAxoiZYZXnTh1AIQQAzo2QlYpDDjcBgrxGEAAcSAJTthswmiBUwDBBC2GpkZJTaRvQ+mAQKIAUuuxdZWQvILQABBmSxMjBj5EpcWgACCMoFOYYSpZyHQHgMIMACt2hmoVEikCQAAAABJRU5ErkJggg==", "19-object-data-data-uri - logo");
   is(hcard.photo, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUA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swmiBUwDBBC2GpkZJTaRvQ+mAQKIAUuuxdZWQvILQABBmSxMjBj5EpcWgACCMoFOYYSpZyHQHgMIMACt2hmoVEikCQAAAABJRU5ErkJggg==", "19-object-data-data-uri - photo");
 
 
   hcard = new hCard(document.getElementById("20-image-alt"));
 
   is(hcard.fn, "John Doe", "20-image-alt - fn");
   is(hcard.n["given-name"], "John", "20-image-alt - given-name");
   is(hcard.n["family-name"], "Doe", "20-image-alt - family-name");
-  is(hcard.logo, "http://example.com/foo.png", "20-image-alt - logo");
-  is(hcard.photo, "http://example.com/foo.png", "20-image-alt - photo");
+  is(hcard.logo, "http://localhost:8888/tests/browser/microformats/test/picture.png", "20-image-alt - logo");
+  is(hcard.photo, "http://localhost:8888/tests/browser/microformats/test/picture.png", "20-image-alt - photo");
 
   hcard = new hCard(document.getElementById("21-tel"));
 
   is(hcard.fn, "John Doe", "21-tel - fn");
   is(hcard.n["given-name"], "John", "21-tel - given-name");
   is(hcard.n["family-name"], "Doe", "21-tel - family-name");
   is(hcard.tel[0].value, "+1.415.555.1231", "21-tel - tel");
   is(hcard.tel[1].value, "+1 415 555 1232", "21-tel - tel");
@@ -1093,33 +1093,32 @@ function test_hCard() {
   is(hcard.uid, "http://theryanking.com/contact/", "38-uid.1 - uid");
   is(hcard.url[0], "http://theryanking.com/contact/", "38-uid.1 - url");
 
   hcard = new hCard(document.getElementById("38-uid.2"));
 
   is(hcard.fn, "Ryan King", "38-uid.2 - fn");
   is(hcard.n["given-name"], "Ryan", "38-uid.2 - given-name");
   is(hcard.n["family-name"], "King", "38-uid.2 - family-name");
-  is(hcard.uid, "http://theryanking.com/contact/", "38-uid.2 - uid");
-  is(hcard.url[0], "http://theryanking.com/contact/", "38-uid.2 - url");
+  is(hcard.uid, "http://localhost:8888/tests/browser/microformats/test/contact/", "38-uid.2 - uid");
+  is(hcard.url[0], "http://localhost:8888/tests/browser/microformats/test/contact/", "38-uid.2 - url");
 
   hcard = new hCard(document.getElementById("38-uid.3"));
 
   is(hcard.fn, "Ryan King", "38-uid.3 - fn");
   is(hcard.n["given-name"], "Ryan", "38-uid.3 - given-name");
   is(hcard.n["family-name"], "King", "38-uid.3 - family-name");
-  is(hcard.uid, "http://theryanking.com/contact/", "38-uid.3 - uid");
-  is(hcard.url[0], "http://theryanking.com/contact/", "38-uid.3 - url");
+  is(hcard.uid, "http://localhost:8888/tests/browser/microformats/test/contact/", "38-uid.3 - uid");
+  is(hcard.url[0], "http://localhost:8888/tests/browser/microformats/test/contact/", "38-uid.3 - url");
 
   hcard = new hCard(document.getElementById("38-uid.4"));
 
   is(hcard.fn, "Ryan King", "38-uid.4 - fn");
   is(hcard.n["given-name"], "Ryan", "38-uid.4 - given-name");
   is(hcard.n["family-name"], "King", "38-uid.4 - family-name");
   is(hcard.uid, "http://theryanking.com/contact/", "38-uid.4 - uid");
   is(hcard.url[0], "http://theryanking.com/contact/", "38-uid.4 - url");
-
 }
 
 </script>
 </pre>
 </body>
 </html>