Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <title>html-script-module-fetch-error-1</title> | |
| 5 <script src="/resources/testharness.js"></script> | |
| 6 <script src="/resources/testharnessreport.js"></script> | |
| 7 </head> | |
| 8 <body> | |
| 9 <h1>html-script-module-fetch-error-1</h1> | |
| 10 <script> | |
| 11 | |
| 12 var log = []; | |
| 13 | |
| 14 var test_load = async_test("test_load"); | |
| 15 window.addEventListener("load", test_load.step_func_done(ev => { | |
| 16 assert_equals(log.length, 1); | |
| 17 assert_false(true); | |
|
domenic
2017/04/28 20:12:03
What is this assert_false(true) about?
neis
2017/05/02 13:51:59
Oops, I didn't intend to include this file actuall
| |
| 18 // TODO(neis): Check more? | |
| 19 })); | |
| 20 | |
| 21 var test_error = async_test("test_error"); | |
| 22 window.addEventListener("error", test_error.step_func_done(ev => { | |
|
domenic
2017/04/28 20:12:03
Per latest changes this should *not* fire; it woul
neis
2017/05/02 13:51:59
I believe it should fire because it's not being ha
| |
| 23 log.push(ev); | |
| 24 })); | |
| 25 | |
| 26 </script> | |
| 27 // TODO(neis): Check script's onerror. | |
| 28 <script type="module" src="./no-such-file.js"></script> | |
| 29 </body> | |
| 30 </html> | |
| OLD | NEW |