From 0bdef9323252f38d2588bd85619f9697d151c217 Mon Sep 17 00:00:00 2001 From: Clint Talbert Date: Wed, 25 Jun 2008 18:59:30 -0700 Subject: [PATCH] bug 427457 - More tests for microformat API, forgot to add the test files r=mkaply --- .../components/microformats/tests/geo.html | 8 + .../tests/test_Microformats_add.html | 237 ++++++++++++++++++ .../tests/test_Microformats_count.html | 155 ++++++++++++ .../tests/test_Microformats_getters.html | 158 ++++++++++++ .../tests/test_Microformats_negative.html | 114 +++++++++ .../tests/test_framerecursion.html | 66 +++++ 6 files changed, 738 insertions(+) create mode 100644 toolkit/components/microformats/tests/geo.html create mode 100644 toolkit/components/microformats/tests/test_Microformats_add.html create mode 100644 toolkit/components/microformats/tests/test_Microformats_count.html create mode 100644 toolkit/components/microformats/tests/test_Microformats_getters.html create mode 100644 toolkit/components/microformats/tests/test_Microformats_negative.html create mode 100644 toolkit/components/microformats/tests/test_framerecursion.html diff --git a/toolkit/components/microformats/tests/geo.html b/toolkit/components/microformats/tests/geo.html new file mode 100644 index 000000000000..561fc49936fd --- /dev/null +++ b/toolkit/components/microformats/tests/geo.html @@ -0,0 +1,8 @@ + + + + Northern + California + + + diff --git a/toolkit/components/microformats/tests/test_Microformats_add.html b/toolkit/components/microformats/tests/test_Microformats_add.html new file mode 100644 index 000000000000..01a47a3ee4dc --- /dev/null +++ b/toolkit/components/microformats/tests/test_Microformats_add.html @@ -0,0 +1,237 @@ + + + Testing Mixed Up Microformat APIs + + + + + + + + +
+

+ Can Really be Anything, even HTML + foo + what about just text? + 011-23-45-7867-897890 + http://www.mozilla.org + + + 0.0 + 0.0 + + 20080401T235900 +

+
+ + +
+ + + + + + 0.0 + 0.0" + + + + +
+ + +
+
+ more values + http://foo.com +
+
+ + +
+ + + + An HTML document! + + more values + + + + + 659 + -362.5 + + + +
+ + +
+ + thehtmlvaltodoescapeme + invalid date + +
+ + +
+  
+
+
diff --git a/toolkit/components/microformats/tests/test_Microformats_count.html b/toolkit/components/microformats/tests/test_Microformats_count.html
new file mode 100644
index 000000000000..bfa93347ebdc
--- /dev/null
+++ b/toolkit/components/microformats/tests/test_Microformats_count.html
@@ -0,0 +1,155 @@
+
+
+  Testing Mixed Up Microformat APIs
+  
+  
+  
+  
+
+
+  
+  

+ + foo + + Mr. + John + J + Doe + M.D + + jj + April 4, 2006 + + B. 1234 + Ste. 100 + 123 Fake St. + San Fran + CA + 12345 + USA + workplace + + 1234 + workplace + + Pacific Time + + Northern + California + + pres. and + cat wrangler + + + foo + bar + + + this is not a note + + + alpha + pub + +

+ + + + +
+ + class="foo">I am not a microformat + class="title">Foolish title, not a format + +
+ + + + Far Northern + Canada + + + + + + + + + + +
+ Park Bench +
+ +
+  
+
+
diff --git a/toolkit/components/microformats/tests/test_Microformats_getters.html b/toolkit/components/microformats/tests/test_Microformats_getters.html
new file mode 100644
index 000000000000..ef6fab9b4491
--- /dev/null
+++ b/toolkit/components/microformats/tests/test_Microformats_getters.html
@@ -0,0 +1,158 @@
+
+
+  Testing Mixed Up Microformat APIs
+  
+  
+  
+  
+
+
+  
+ +

+ + foo + + Mr. + John + J + Doe + M.D + + jj + April 4, 2006 + + B. 1234 + Ste. 100 + 123 Fake St. + San Fran + CA + 12345 + USA + workplace + + 1234 + workplace + + Pacific Time + + Northern + California + + pres. and + cat wrangler + + + foo + bar + + + this is not a note + + + alpha + pub + +

+ + + + +
+ + class="foo">I am not a microformat + class="title">Foolish title, not a format + +
+ + + + Far Northern + Canada + + + + + + +
+ some interesting content + + + + + +
+ Park Bench +
+ + +
+
+ +
+  
+
+
diff --git a/toolkit/components/microformats/tests/test_Microformats_negative.html b/toolkit/components/microformats/tests/test_Microformats_negative.html
new file mode 100644
index 000000000000..5b7bea806b7c
--- /dev/null
+++ b/toolkit/components/microformats/tests/test_Microformats_negative.html
@@ -0,0 +1,114 @@
+
+
+  Testing Mixed Up Microformat APIs
+  
+  
+  
+  
+
+
+  
+ + + +
+ + class="foo">I am not a microformat + class="title">Foolish title, not a format + +
+ + + + + +
+ +
+ +

+

+ foo + + jj + April 4, 2006 + + B. 1234 + Ste. 100 + + San Fran + CA + 12345 + USA + workplace + + + foo + bar + + this is not a note + + + alpha + pub + + + + +
+  
+
+
diff --git a/toolkit/components/microformats/tests/test_framerecursion.html b/toolkit/components/microformats/tests/test_framerecursion.html
new file mode 100644
index 000000000000..bbbcf58a456e
--- /dev/null
+++ b/toolkit/components/microformats/tests/test_framerecursion.html
@@ -0,0 +1,66 @@
+
+
+
+  Testing Mixed Up Microformat APIs
+  
+  
+  
+  
+
+
+
+  
+    
+      
+ + I am not a microformat + Foolish title, not a format + +
+ + + + Far Northern + Canada + + + +
+ Testing is Fun! +
+ + + + + + + +
+  
+
+