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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/mixedContent/insecure-async-post-xhr-blocked.html

Issue 1253343002: [XHR] Tidy up files for testing XHR's error for mixed content check failure (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Revert blank line addition Created 4 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/mixedContent/insecure-async-post-xhr-blocked-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="/js-test-resources/testharness.js"></script> 2 <script src="/js-test-resources/testharness.js"></script>
3 <script src="/js-test-resources/testharnessreport.js"></script> 3 <script src="/js-test-resources/testharnessreport.js"></script>
4 <script> 4 <script>
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.overridePreference("WebKitAllowRunningInsecureContent", false); 6 testRunner.overridePreference("WebKitAllowRunningInsecureContent", false);
7 } 7 }
8 8
9 var test = async_test("Opens a HTTPS window that loads insecure data via XHR. We should trigger a mixed content callback and block the load."); 9 var test = async_test("Opens an HTTPS window that loads insecure data via " +
10 "XHR. We should trigger a mixed content callback and block the load.");
11 window.addEventListener("message", test.step_func(function (e) {
12 assert_equals(e.data, "DONE");
13 test.done();
14 }), false);
10 15
11 window.addEventListener("message", test.step_func(function (e) {
12 assert_equals(e.data, "DONE");
13 test.done();
14 }), false);
15 window.open("https://127.0.0.1:8443/security/mixedContent/resources/frame-with-i nsecure-async-xhr-post.html"); 16 window.open("https://127.0.0.1:8443/security/mixedContent/resources/frame-with-i nsecure-async-xhr-post.html");
16 </script> 17 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/mixedContent/insecure-async-post-xhr-blocked-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698