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

Unified Diff: LayoutTests/http/tests/htmlimports/import-script-block-crossorigin-dynamic-expected.txt

Issue 19762002: [HTML Imports] Let script of imported document running. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Made a test more robust. Created 7 years, 5 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: LayoutTests/http/tests/htmlimports/import-script-block-crossorigin-dynamic-expected.txt
diff --git a/LayoutTests/http/tests/htmlimports/import-script-block-crossorigin-dynamic-expected.txt b/LayoutTests/http/tests/htmlimports/import-script-block-crossorigin-dynamic-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..b4488b460caa1551496ef0ee52c3d1255161d35c
--- /dev/null
+++ b/LayoutTests/http/tests/htmlimports/import-script-block-crossorigin-dynamic-expected.txt
@@ -0,0 +1,14 @@
+CONSOLE MESSAGE: Script from origin 'http://127.0.0.1:8000' has been blocked from loading by Cross-Origin Resource Sharing policy: Origin http://localhost:8000 is not allowed by Access-Control-Allow-Origin.
+CONSOLE MESSAGE: Script from origin 'http://127.0.0.1:8000' has been blocked from loading by Cross-Origin Resource Sharing policy: Origin http://localhost:8000 is not allowed by Access-Control-Allow-Origin.
+This test ensures that crossorigin-marked script elements are blocked properly
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS document.externalScriptHasRun is undefined
+PASS document.corsExternalScriptHasRun is undefined
+PASS document.corsExternalScriptForLocalhostHasRun is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698