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

Side by Side Diff: LayoutTests/fast/dom/navigatorcontentutils/unregister-protocol-handler-expected.txt

Issue 293403002: Introduce mock test system for navigator content utils (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 unified diff | Download patch
OLDNEW
1 This test makes sure that navigator.unregisterProtocolHandler throws the proper exceptions and has no-op default implementation. 1 This test makes sure that navigator.unregisterProtocolHandler throws the proper exceptions and has no-op default implementation.
2 2
3 Pass: window.navigator.unregisterProtocolHandler is defined. 3 PASS window.navigator.unregisterProtocolHandler is defined.
4 Pass: Invalid protocol "http" threw SecurityError exception: "Failed to execute 'unregisterProtocolHandler' on 'Navigator': The scheme 'http' doesn't belong to the protocol whitelist. Please prefix non-whitelisted schemes with the string 'w eb+'.". 4 PASS Invalid protocol "http" threw SecurityError exception: "Failed to execute ' unregisterProtocolHandler' on 'Navigator': The scheme 'http' doesn't belong to t he protocol whitelist. Please prefix non-whitelisted schemes with the string 'we b+'.".
5 Pass: Invalid protocol "https" threw SecurityError exception: "Failed to execute 'unregisterProtocolHandler' on 'Navigator': The scheme 'https' doesn't belong t o the protocol whitelist. Please prefix non-whitelisted schemes with the string 'web+'.". 5 PASS Invalid protocol "https" threw SecurityError exception: "Failed to execute 'unregisterProtocolHandler' on 'Navigator': The scheme 'https' doesn't belong to the protocol whitelist. Please prefix non-whitelisted schemes with the string ' web+'.".
6 Pass: Invalid protocol "file" threw SecurityError exception: "Failed to execute 'unregisterProtocolHandler' on 'Navigator': The scheme 'file' doesn't belong to the protocol whitelist. Please prefix non-whitelisted schemes with the string 'w eb+'.". 6 PASS Invalid protocol "file" threw SecurityError exception: "Failed to execute ' unregisterProtocolHandler' on 'Navigator': The scheme 'file' doesn't belong to t he protocol whitelist. Please prefix non-whitelisted schemes with the string 'we b+'.".
7 Pass: Invalid protocol "web+" threw SecurityError exception: "Failed to execute 'unregisterProtocolHandler' on 'Navigator': The scheme 'web+' is less than five characters long.". 7 PASS Invalid protocol "web+" threw SecurityError exception: "Failed to execute ' unregisterProtocolHandler' on 'Navigator': The scheme 'web+' is less than five c haracters long.".
8 Pass: Valid protocol "bitcoin" allowed. 8 PASS Valid protocol "bitcoin" allowed.
9 Pass: Valid protocol "geo" allowed. 9 PASS Valid protocol "geo" allowed.
10 Pass: Valid protocol "im" allowed. 10 PASS Valid protocol "im" allowed.
11 Pass: Valid protocol "irc" allowed. 11 PASS Valid protocol "irc" allowed.
12 Pass: Valid protocol "ircs" allowed. 12 PASS Valid protocol "ircs" allowed.
13 Pass: Valid protocol "magnet" allowed. 13 PASS Valid protocol "magnet" allowed.
14 Pass: Valid protocol "mailto" allowed. 14 PASS Valid protocol "mailto" allowed.
15 Pass: Valid protocol "mms" allowed. 15 PASS Valid protocol "mms" allowed.
16 Pass: Valid protocol "news" allowed. 16 PASS Valid protocol "news" allowed.
17 Pass: Valid protocol "nntp" allowed. 17 PASS Valid protocol "nntp" allowed.
18 Pass: Valid protocol "sip" allowed. 18 PASS Valid protocol "sip" allowed.
19 Pass: Valid protocol "sms" allowed. 19 PASS Valid protocol "sms" allowed.
20 Pass: Valid protocol "smsto" allowed. 20 PASS Valid protocol "smsto" allowed.
21 Pass: Valid protocol "ssh" allowed. 21 PASS Valid protocol "ssh" allowed.
22 Pass: Valid protocol "tel" allowed. 22 PASS Valid protocol "tel" allowed.
23 Pass: Valid protocol "urn" allowed. 23 PASS Valid protocol "urn" allowed.
24 Pass: Valid protocol "webcal" allowed. 24 PASS Valid protocol "webcal" allowed.
25 Pass: Valid protocol "wtai" allowed. 25 PASS Valid protocol "wtai" allowed.
26 Pass: Valid protocol "xmpp" allowed. 26 PASS Valid protocol "xmpp" allowed.
27 Pass: Invalid scheme "mailto:" falied. 27 PASS Invalid scheme "mailto:" falied.
28 Pass: Invalid scheme "ssh:/" falied. 28 PASS Invalid scheme "ssh:/" falied.
29 Pass: Invalid scheme "magnet:+" falied. 29 PASS Invalid scheme "magnet:+" falied.
30 Pass: Invalid scheme "tel:sip" falied. 30 PASS Invalid scheme "tel:sip" falied.
31 Pass: Invalid url "" threw SyntaxError exception.Failed to execute 'unregisterPr otocolHandler' on 'Navigator': The url provided ('') does not contain '%s'.". 31 PASS Invalid url "" threw SyntaxError exception.Failed to execute 'unregisterPro tocolHandler' on 'Navigator': The url provided ('') does not contain '%s'.".
32 Pass: Invalid url "%S" threw SyntaxError exception.Failed to execute 'unregister ProtocolHandler' on 'Navigator': The url provided ('%S') does not contain '%s'." . 32 PASS Invalid url "%S" threw SyntaxError exception.Failed to execute 'unregisterP rotocolHandler' on 'Navigator': The url provided ('%S') does not contain '%s'.".
33 Pass: Valid call succeeded. 33 PASS Valid call succeeded.
34 34
35 Check if unregisterProtocolHandler can unregister protocol correctly. If isProto colHandlerRegistered() returns 'new' state, unregisterProtoclHandler() works wel l.
36 'bitcoin' protocol will be registered and unregistered for testing.
37
38 PASS window.navigator.isProtocolHandlerRegistered returns 'registered' state. 'b itcoin' is registered successfully.
39 PASS window.navigator.isProtocolHandlerRegistered returns 'new' state. 'bitcoin' is unregistered successfully.
40
41
42 PASS successfullyParsed is true
43
44 TEST COMPLETE
45
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/navigatorcontentutils/unregister-protocol-handler.html ('k') | Source/modules/modules.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698