Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/html/webappapis/system-state-and-capabilities/the-navigator-object/content-expected.txt

Issue 2022203002: Import wpt@d510ec1abc30eee4c855c13842bc2f0dfa791f8b (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Message changed by testharness.js update Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/wpt/html/webappapis/system-state-and-capabilities/the-navigator-object/content-expected.txt
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/webappapis/system-state-and-capabilities/the-navigator-object/content-expected.txt b/third_party/WebKit/LayoutTests/imported/wpt/html/webappapis/system-state-and-capabilities/the-navigator-object/content-expected.txt
index 118a43be974533ef1afd5d1a1ad289abb99bd3c9..09b3983a3a32a728de9384eb8ec843050c9f37e8 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/webappapis/system-state-and-capabilities/the-navigator-object/content-expected.txt
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/webappapis/system-state-and-capabilities/the-navigator-object/content-expected.txt
@@ -8,20 +8,20 @@ FAIL a URL with a multi-argument query string should work navigator.registerCont
FAIL a URL with the passed string as a directory name should work navigator.registerContentHandler is not a function
FAIL a URL with the passed string as a directory name followed by a query string and fragment identifier should work navigator.registerContentHandler is not a function
FAIL a URL with the passed string included twice should work navigator.registerContentHandler is not a function
-FAIL an empty url argument should throw SYNTAX_ERR assert_throws: function "function () { navigator.registerContentHandler('text/x-un..." threw object "TypeError: navigator.registerContentHandler is not a func..." that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12
-FAIL %s instead of domain name should throw SYNTAX_ERR assert_throws: function "function () { navigator.registerContentHandler('text/x-un..." threw object "TypeError: navigator.registerContentHandler is not a func..." that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12
-FAIL %s instead of subdomain name should throw syntax_err assert_throws: function "function () { navigator.registerContentHandler('text/x-un..." threw object "TypeError: navigator.registerContentHandler is not a func..." that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12
-FAIL a url argument without %s should throw SYNTAX_ERR assert_throws: function "function () { navigator.registerContentHandler('text/x-un..." threw object "TypeError: navigator.registerContentHandler is not a func..." that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12
-FAIL a url argument pointing to a different domain name, without %s should throw SYNTAX_ERR assert_throws: function "function () { navigator.registerContentHandler('text/x-un..." threw object "TypeError: navigator.registerContentHandler is not a func..." that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12
-FAIL a url argument without %s (but with %) should throw SYNTAX_ERR assert_throws: function "function () { navigator.registerContentHandler('text/x-un..." threw object "TypeError: navigator.registerContentHandler is not a func..." that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12
-FAIL a url argument without %s (but with %a) should throw SYNTAX_ERR assert_throws: function "function () { navigator.registerContentHandler('text/x-un..." threw object "TypeError: navigator.registerContentHandler is not a func..." that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12
-FAIL a url argument pointing to a different domain name should throw SECURITY_ERR assert_throws: function "function () { navigator.registerContentHandler('text/x-un..." threw object "TypeError: navigator.registerContentHandler is not a func..." that is not a DOMException SECURITY_ERR: property "code" is equal to undefined, expected 18
-FAIL a url argument pointing to a different domain name should throw SECURITY_ERR (2) assert_throws: function "function () { navigator.registerContentHandler('text/x-un..." threw object "TypeError: navigator.registerContentHandler is not a func..." that is not a DOMException SECURITY_ERR: property "code" is equal to undefined, expected 18
-FAIL a url argument pointing to a different domain name should throw SECURITY_ERR (3) assert_throws: function "function () { navigator.registerContentHandler('text/x-un..." threw object "TypeError: navigator.registerContentHandler is not a func..." that is not a DOMException SECURITY_ERR: property "code" is equal to undefined, expected 18
-FAIL attempting to override the image/jpeg MIME type should throw SECURITY_ERR assert_throws: function "function () { navigator.registerContentHandler(blacklist[..." threw object "TypeError: navigator.registerContentHandler is not a func..." that is not a DOMException SECURITY_ERR: property "code" is equal to undefined, expected 18
-FAIL attempting to override the text/html MIME type should throw SECURITY_ERR assert_throws: function "function () { navigator.registerContentHandler(blacklist[..." threw object "TypeError: navigator.registerContentHandler is not a func..." that is not a DOMException SECURITY_ERR: property "code" is equal to undefined, expected 18
-FAIL attempting to override the text/javascript MIME type should throw SECURITY_ERR assert_throws: function "function () { navigator.registerContentHandler(blacklist[..." threw object "TypeError: navigator.registerContentHandler is not a func..." that is not a DOMException SECURITY_ERR: property "code" is equal to undefined, expected 18
-FAIL attempting to override the text/plain MIME type should throw SECURITY_ERR assert_throws: function "function () { navigator.registerContentHandler(blacklist[..." threw object "TypeError: navigator.registerContentHandler is not a func..." that is not a DOMException SECURITY_ERR: property "code" is equal to undefined, expected 18
+FAIL an empty url argument should throw SYNTAX_ERR assert_throws: function "function () { navigator.registerContentHandler('text/x-unknown-type', '', 'foo') }" threw object "TypeError: navigator.registerContentHandler is not a function" that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12
+FAIL %s instead of domain name should throw SYNTAX_ERR assert_throws: function "function () { navigator.registerContentHandler('text/x-unknown-type', 'http://%s.com', 'foo') }" threw object "TypeError: navigator.registerContentHandler is not a function" that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12
+FAIL %s instead of subdomain name should throw syntax_err assert_throws: function "function () { navigator.registerContentHandler('text/x-unknown-type', 'http://%s.example.com', 'foo') }" threw object "TypeError: navigator.registerContentHandler is not a function" that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12
+FAIL a url argument without %s should throw SYNTAX_ERR assert_throws: function "function () { navigator.registerContentHandler('text/x-unknown-type', location.href + '', 'foo') }" threw object "TypeError: navigator.registerContentHandler is not a function" that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12
+FAIL a url argument pointing to a different domain name, without %s should throw SYNTAX_ERR assert_throws: function "function () { navigator.registerContentHandler('text/x-unknown-type', 'http://example.com', 'foo') }" threw object "TypeError: navigator.registerContentHandler is not a function" that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12
+FAIL a url argument without %s (but with %) should throw SYNTAX_ERR assert_throws: function "function () { navigator.registerContentHandler('text/x-unknown-type', location.href + '/%', 'foo') }" threw object "TypeError: navigator.registerContentHandler is not a function" that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12
+FAIL a url argument without %s (but with %a) should throw SYNTAX_ERR assert_throws: function "function () { navigator.registerContentHandler('text/x-unknown-type', location.href + '/%a', 'foo') }" threw object "TypeError: navigator.registerContentHandler is not a function" that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12
+FAIL a url argument pointing to a different domain name should throw SECURITY_ERR assert_throws: function "function () { navigator.registerContentHandler('text/x-unknown-type', 'http://example.com/%s', 'foo') }" threw object "TypeError: navigator.registerContentHandler is not a function" that is not a DOMException SECURITY_ERR: property "code" is equal to undefined, expected 18
+FAIL a url argument pointing to a different domain name should throw SECURITY_ERR (2) assert_throws: function "function () { navigator.registerContentHandler('text/x-unknown-type', 'https://example.com/%s', 'foo') }" threw object "TypeError: navigator.registerContentHandler is not a function" that is not a DOMException SECURITY_ERR: property "code" is equal to undefined, expected 18
+FAIL a url argument pointing to a different domain name should throw SECURITY_ERR (3) assert_throws: function "function () { navigator.registerContentHandler('text/x-unknown-type', 'http://foobar.example.com/%s', 'foo') }" threw object "TypeError: navigator.registerContentHandler is not a function" that is not a DOMException SECURITY_ERR: property "code" is equal to undefined, expected 18
+FAIL attempting to override the image/jpeg MIME type should throw SECURITY_ERR assert_throws: function "function () { navigator.registerContentHandler(blacklist[bi], location.href + '/%s', 'foo') }" threw object "TypeError: navigator.registerContentHandler is not a function" that is not a DOMException SECURITY_ERR: property "code" is equal to undefined, expected 18
+FAIL attempting to override the text/html MIME type should throw SECURITY_ERR assert_throws: function "function () { navigator.registerContentHandler(blacklist[bi], location.href + '/%s', 'foo') }" threw object "TypeError: navigator.registerContentHandler is not a function" that is not a DOMException SECURITY_ERR: property "code" is equal to undefined, expected 18
+FAIL attempting to override the text/javascript MIME type should throw SECURITY_ERR assert_throws: function "function () { navigator.registerContentHandler(blacklist[bi], location.href + '/%s', 'foo') }" threw object "TypeError: navigator.registerContentHandler is not a function" that is not a DOMException SECURITY_ERR: property "code" is equal to undefined, expected 18
+FAIL attempting to override the text/plain MIME type should throw SECURITY_ERR assert_throws: function "function () { navigator.registerContentHandler(blacklist[bi], location.href + '/%s', 'foo') }" threw object "TypeError: navigator.registerContentHandler is not a function" that is not a DOMException SECURITY_ERR: property "code" is equal to undefined, expected 18
FAIL overriding the application/atom+xml MIME type should work navigator.registerContentHandler is not a function
FAIL overriding the application/rss+xml MIME type should work navigator.registerContentHandler is not a function
FAIL overriding the application/x-unrecognized MIME type should work navigator.registerContentHandler is not a function

Powered by Google App Engine
This is Rietveld 408576698