diff options
author | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-18 13:48:28 +0000 |
---|---|---|
committer | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-18 13:48:28 +0000 |
commit | 8d7019c5f7be9ffe7ff8241e11a62e85c22d0042 (patch) | |
tree | 4177a12606a316e71a486bc402b276355c8c04b2 /chrome/test | |
parent | 8dd549080ac4709a6459e2dccbc4d64912960f40 (diff) | |
download | chromium_src-8d7019c5f7be9ffe7ff8241e11a62e85c22d0042.zip chromium_src-8d7019c5f7be9ffe7ff8241e11a62e85c22d0042.tar.gz chromium_src-8d7019c5f7be9ffe7ff8241e11a62e85c22d0042.tar.bz2 |
Update exception string expectations for extension tests
The toString of exceptions changed in
http://build.chromium.org/f/chromium/perf/dashboard/ui/changelog_blink.html?url=%2Ftrunk&range=152573%3A152573
Undoes the disabling done in r206862 and r206873
BUG=251058
TBR=kbr
Review URL: https://codereview.chromium.org/17348004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206973 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r-- | chrome/test/data/extensions/api_test/notifications/has_not_permission/background.js | 2 | ||||
-rw-r--r-- | chrome/test/data/extensions/platform_apps/restrictions/main.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/chrome/test/data/extensions/api_test/notifications/has_not_permission/background.js b/chrome/test/data/extensions/api_test/notifications/has_not_permission/background.js index c1e2009..dbc2f1f 100644 --- a/chrome/test/data/extensions/api_test/notifications/has_not_permission/background.js +++ b/chrome/test/data/extensions/api_test/notifications/has_not_permission/background.js @@ -20,7 +20,7 @@ chrome.test.runTests([ window.webkitNotifications.createNotification( "", "Foo", "This is text notification.").show(); } catch (e) { - chrome.test.assertTrue(e.message.indexOf("SecurityError") == 0); + chrome.test.assertEq("SecurityError", e.name); chrome.test.succeed(); return; } diff --git a/chrome/test/data/extensions/platform_apps/restrictions/main.js b/chrome/test/data/extensions/platform_apps/restrictions/main.js index 6146880..0176ff1 100644 --- a/chrome/test/data/extensions/platform_apps/restrictions/main.js +++ b/chrome/test/data/extensions/platform_apps/restrictions/main.js @@ -13,7 +13,7 @@ function assertThrowsError(method, opt_expectedError) { } catch (e) { var message = e.message || e; if (opt_expectedError) { - assertEq(opt_expectedError, message); + assertEq(opt_expectedError, e.name); } else { assertTrue( message.indexOf('is not available in packaged apps') != -1, @@ -122,7 +122,7 @@ chrome.test.runTests([ var xhr = new XMLHttpRequest(); assertThrowsError(function() { xhr.open('GET', 'data:should not load', false); - }, 'InvalidAccessError: DOM Exception 15'); + }, 'InvalidAccessError'); succeed(); }, |