summaryrefslogtreecommitdiffstats
path: root/chrome_frame/test/util_unittests.cc
diff options
context:
space:
mode:
authortommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-16 14:44:32 +0000
committertommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-16 14:44:32 +0000
commit00aebd7077fba59430dc4d2bada1aa8b56b548f9 (patch)
tree367727f4a8af89d9b9b43e3013279ad7fa5d7211 /chrome_frame/test/util_unittests.cc
parentf274a1c114c24dadddfbbeb51049a655cb075d90 (diff)
downloadchromium_src-00aebd7077fba59430dc4d2bada1aa8b56b548f9.zip
chromium_src-00aebd7077fba59430dc4d2bada1aa8b56b548f9.tar.gz
chromium_src-00aebd7077fba59430dc4d2bada1aa8b56b548f9.tar.bz2
Not firing DocumentComplete in the presence of buggy BHOs.
TEST=should be no functional change except if there are buggy BHOs that we know of loaded in IE. BUG=44463 Review URL: http://codereview.chromium.org/2906011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52668 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/test/util_unittests.cc')
-rw-r--r--chrome_frame/test/util_unittests.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome_frame/test/util_unittests.cc b/chrome_frame/test/util_unittests.cc
index 0187f5d..cedff5d 100644
--- a/chrome_frame/test/util_unittests.cc
+++ b/chrome_frame/test/util_unittests.cc
@@ -137,3 +137,13 @@ TEST(UtilTests, ParseAttachTabUrlTest) {
&disposition));
}
+TEST(UtilTests, ParseVersionTest) {
+ uint32 high = 0, low = 0;
+ EXPECT_FALSE(ParseVersion(L"", &high, &low));
+ EXPECT_TRUE(ParseVersion(L"1", &high, &low) && high == 1 && low == 0);
+ EXPECT_TRUE(ParseVersion(L"1.", &high, &low) && high == 1 && low == 0);
+ EXPECT_TRUE(ParseVersion(L"1.2", &high, &low) && high == 1 && low == 2);
+ EXPECT_TRUE(ParseVersion(L"1.2.3.4", &high, &low) && high == 1 && low == 2);
+ EXPECT_TRUE(ParseVersion(L"10.20", &high, &low) && high == 10 && low == 20);
+}
+