Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/loading/doc-write-sync-third-party-script-block.html |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/loading/doc-write-sync-third-party-script-block.html b/third_party/WebKit/LayoutTests/http/tests/loading/doc-write-sync-third-party-script-block.html |
| index c9b719952229fc30d9714f7efb4c79cc59a1b021..e138991d139f78a558dfe5b95ad098dcd49f4dcf 100644 |
| --- a/third_party/WebKit/LayoutTests/http/tests/loading/doc-write-sync-third-party-script-block.html |
| +++ b/third_party/WebKit/LayoutTests/http/tests/loading/doc-write-sync-third-party-script-block.html |
| @@ -2,9 +2,9 @@ |
| <script src="../resources/testharness.js"></script> |
| <script src="../resources/testharnessreport.js"></script> |
| <script> |
| - var sameOrigin = 'http://127.0.0.1:8000' |
| - var crossOrigin = 'http://localhost:8000' |
| - var filePath = '/loading/resources/js-loaded.js' |
| + var sameOrigin = 'http://127.0.0.1:8000'; |
| + var crossOrigin = 'http://localhost:8000'; |
| + var filePath = '/loading/resources/js-loaded.js'; |
| var jsLoaded = false; |
| var loadSuccess = false; |
| @@ -17,18 +17,18 @@ |
| assert_true(jsLoaded); |
| assert_true(loadSuccess); |
| }, "Blocking of scripts doesn't come into effect since feature is disabled"); |
| - |
| + |
| </script> |
| <script> |
| if (window.internals) { |
| - internals.settings.setDisallowFetchForDocWrittenScriptsInMainFrame(true); |
| + internals.settings.setDisallowFetchForDocWrittenScriptsInMainFrameOnSlowConnections(true); |
| internals.setNetworkStateNotifierTestOnly(true); |
| internals.setNetworkConnectionInfo('cellular2g', 1.0); |
| internals.evictAllResources(); |
| // Reset the state of the singleton network state notifier. |
| window.addEventListener('beforeunload', function() { |
| - internals.settings.setDisallowFetchForDocWrittenScriptsInMainFrame(false); |
| + internals.settings.setDisallowFetchForDocWrittenScriptsInMainFrameOnSlowConnections(false); |
| internals.setNetworkStateNotifierTestOnly(false); |
| }, false); |
| } |
| @@ -59,7 +59,7 @@ |
| assert_true(jsLoaded); |
| assert_true(loadSuccess); |
| }, "cross-origin script not blocked since it is cached"); |
| - |
| + |
|
jkarlin
2016/04/11 14:52:27
why this newline?
Bryan McQuade
2016/04/11 16:28:29
Oh, I didn't add a newline - just removed four whi
|
| </script> |
| <script> |
| jsLoaded = false; |