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

Side by Side Diff: LayoutTests/http/tests/workers/worker-importScriptsOnError.html

Issue 19514006: Explicitly test same/cross-origin importScripts() effect on worker.onerror. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/http/tests/workers/worker-importScripts-onerror-sameorigin-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <body>
2 <p>Test importScripts with error.</p>
3 <div id=result></div>
4 <script>
5 function log(message)
6 {
7 document.getElementById("result").innerHTML += message + "<br>";
8 }
9
10 if (window.testRunner) {
11 testRunner.dumpAsText();
12 testRunner.waitUntilDone();
13 }
14
15 var worker = new Worker('resources/worker-importScripts-error.js');
16
17 worker.onerror = function(error)
18 {
19 var properties = [];
20 for (property in error) {
21 if (property == 'timeStamp')
22 continue;
23 properties.push('<br/>' + property + ': ' + error[property]);
24 }
25 properties.sort();
26 log(properties);
27
28 if (window.testRunner) {
29 // Allow the console message to be dumped out.
30 setTimeout(function() {
31 testRunner.notifyDone();
32 }, 0);
33 }
34 }
35 </script>
36 </body>
37 </html>
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/workers/worker-importScripts-onerror-sameorigin-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698