summaryrefslogtreecommitdiffstats
path: root/chrome_frame/test/html_util_test_data
diff options
context:
space:
mode:
Diffstat (limited to 'chrome_frame/test/html_util_test_data')
-rw-r--r--chrome_frame/test/html_util_test_data/basic_test.html11
-rw-r--r--chrome_frame/test/html_util_test_data/degenerate_cases_test.html7
-rw-r--r--chrome_frame/test/html_util_test_data/multiple_tags.html17
-rw-r--r--chrome_frame/test/html_util_test_data/quotes_test.html10
4 files changed, 45 insertions, 0 deletions
diff --git a/chrome_frame/test/html_util_test_data/basic_test.html b/chrome_frame/test/html_util_test_data/basic_test.html
new file mode 100644
index 0000000..f0cd17a
--- /dev/null
+++ b/chrome_frame/test/html_util_test_data/basic_test.html
@@ -0,0 +1,11 @@
+<HTML>
+
+ <HEAD>
+ <!-- Note the capitalization in CONtent to test the
+ case-insensitiveness -->
+ <META http-equiv="X-UA-Compatible" CONtent="chrome=1" />
+ </HEAD>
+ <BODY>
+
+ Wooo!
+ </BODY></HTML>
diff --git a/chrome_frame/test/html_util_test_data/degenerate_cases_test.html b/chrome_frame/test/html_util_test_data/degenerate_cases_test.html
new file mode 100644
index 0000000..d527496a
--- /dev/null
+++ b/chrome_frame/test/html_util_test_data/degenerate_cases_test.html
@@ -0,0 +1,7 @@
+<><foo ">
+</head>
+<"foo">
+<!-- Note that the meta tag shouldn't be picked up since we are still
+ inside a quote block. -->
+<META http-equiv="X-UA-Compatible" CONtent="chrome=1" />
+<fee>
diff --git a/chrome_frame/test/html_util_test_data/multiple_tags.html b/chrome_frame/test/html_util_test_data/multiple_tags.html
new file mode 100644
index 0000000..9bd5cea
--- /dev/null
+++ b/chrome_frame/test/html_util_test_data/multiple_tags.html
@@ -0,0 +1,17 @@
+<HTML><HEAD>
+
+ <META http-equiv="X-UA-Compatible" CONtent="chrome=1" />
+ <META http-equiv="X-UA-Compatible" content="chrome=1" />
+ <METAman http-equiv="X-UA-Compatible" CONtent="notchrome=1" />
+ <transMETA http-equiv="X-UA-Compatible" CONtent="notchrome=1" />
+ <IMETAGIRL http-equiv="X-UA-Compatible" CONtent="notchrome=1" />
+ <metA http-equiv="X-UA-Compatible" content="chrome=1" />
+ <!-- shouldn't pick up commented meta tags! -->
+ <!-- <metA http-equiv="X-UA-Compatible" content="chrome=1" /> -->
+
+ <!-- The following cases should also not be matched -->
+ <meta http-equiv="X-UA-Compatibleeee" content="chrome=1" />
+ <meta http-equiv="X-UA-Compatible!" content="chrome=1" />
+ <meta http-equiv="!X-UA-Compatible" content="chrome=1" />
+ <meta http-equiv="\"X-UA-Compatible\"" content="chrome=1" />
+<fee> \ No newline at end of file
diff --git a/chrome_frame/test/html_util_test_data/quotes_test.html b/chrome_frame/test/html_util_test_data/quotes_test.html
new file mode 100644
index 0000000..03ce96d
--- /dev/null
+++ b/chrome_frame/test/html_util_test_data/quotes_test.html
@@ -0,0 +1,10 @@
+<HTML>
+
+ <HEAD>
+ <DANGER red="herring>'" testing = "do'><><>quotes\"\\'work?">
+ <META http-equiv=X-UA-Compatible CONtent="chrome=1" />
+ </HEAD>
+ <BODY>
+
+ Wooo!
+ </BODY></HTML>