summaryrefslogtreecommitdiffstats
path: root/chrome_frame/test
diff options
context:
space:
mode:
authorerikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-26 20:29:12 +0000
committererikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-26 20:29:12 +0000
commit8e698b6c58faf3a267ebc7512e530dc4323a010b (patch)
treea9e1d055c274fb2f6fdda77d5a5cfe3d7f2a3b15 /chrome_frame/test
parenteba0116741b4849809fc57d97cdf527a1b5da507 (diff)
downloadchromium_src-8e698b6c58faf3a267ebc7512e530dc4323a010b.zip
chromium_src-8e698b6c58faf3a267ebc7512e530dc4323a010b.tar.gz
chromium_src-8e698b6c58faf3a267ebc7512e530dc4323a010b.tar.bz2
Modify the parsing of X-UA-COMPATIBLE header (and meta tag) to allow comma or semi-colon as delimiter for backwards compatibility.
BUG=52601 TEST=chrome_frame_unittests / UtilTests.XUaCompatibleDirectiveTest Review URL: http://codereview.chromium.org/4103004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63937 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/test')
-rw-r--r--chrome_frame/test/util_unittests.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome_frame/test/util_unittests.cc b/chrome_frame/test/util_unittests.cc
index 6f6be52..6581184 100644
--- a/chrome_frame/test/util_unittests.cc
+++ b/chrome_frame/test/util_unittests.cc
@@ -394,7 +394,13 @@ TEST(UtilTests, XUaCompatibleDirectiveTest) {
// Ignore unrecognized values
{ " IE=8 ; chrome = IE7.1; chrome = IE6;", 6 },
// First valid wins
- { " IE=8 ; chrome = IE6; chrome = IE8;", 6 }
+ { " IE=8 ; chrome = IE6; chrome = IE8;", 6 },
+ // Comma delimiter
+ { " IE=8,chrome=IE6;", -1 },
+ { " IE=8,chrome=IE6", 6 },
+ { " IE=8,chrome=IE6, Something=Else;Why;Not", 6 },
+ { " IE=8,chrome=1,Something=Else", INT_MAX },
+ { " IE=8(a;b;c),chrome=IE7,Something=Else", 7 }
};
for (int case_index = 0; case_index < arraysize(test_cases); ++case_index) {