Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / workers / worker-onerror-07.html
blobe46cb06094c22affb0fdab396ed6f4d903bb4aa9
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 window.isOnErrorTest = true;
6 </script>
7 <script src="../../resources/js-test.js"></script>
8 <script src="resources/onerror-test.js"></script>
9 </head>
10 <body>
11 <!-- This script's body will be used to build a Blob URL to use as a Worker. -->
12 <script id="workerCode" type="text/plain">
13 onerror = function(message, filename, lineno, colno, error) {
14 postMessage({
15 message: message,
16 filename: filename,
17 lineno: lineno,
18 colno: colno,
19 error: error
20 });
21 setTimeout(function () { postMessage({ done: true }); }, 0);
22 return true;
25 foo.bar = 0;
26 </script>
27 <script>
28 description("Handling an error in the worker should suppress the page-level onerror handler.");
30 checkPostMessage({
31 message: "Uncaught ReferenceError: foo is not defined",
32 filename: "[blob: URL]",
33 lineno: 14,
34 colno: 9,
35 });
37 errorEventHandlerShouldNotFire();
38 </script>
39 </body>
40 </html>