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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/images/image-document-remove-listener.html

Issue 2246303003: Use testharness.js instead of js-test.js in fast/images. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
fs 2016/08/16 10:54:59 You can drop <html>, <body> and their correspondin
sivag 2016/08/16 13:44:02 Done.
3 <script src="../../resources/js-test.js"></script> 3 <title>Test that removing invalid event listeners from image documents doesn't c rash.</title>
4 <script src="../../resources/testharness.js"></script>
5 <script src="../../resources/testharnessreport.js"></script>
4 <body> 6 <body>
5 <script> 7 <script>
6 description("Test that removing invalid event listeners from image documents doe sn't crash."); 8 async_test(function(t) {
7
8 window.jsTestIsAsync = true;
9
10 if (window.testRunner) {
11 testRunner.dumpAsText();
12 testRunner.setCanOpenWindows();
fs 2016/08/16 10:54:59 Don't you still need this?
sivag 2016/08/16 13:44:02 Done.
13 testRunner.waitUntilDone();
14 }
15
16 function runTest()
17 {
18 var newWindow = window.open("resources/dice.png"); 9 var newWindow = window.open("resources/dice.png");
19 newWindow.onload = function() { 10 newWindow.onload = t.step_func_done(function() {
20 newWindow.addEventListener("resize", function () {;}); 11 newWindow.addEventListener("resize", function () {;});
21 newWindow.removeEventListener("resize", 2); 12 newWindow.removeEventListener("resize", 2);
22 testPassed("No crash."); 13 });
23 finishJSTest(); 14 });
24 };
25 }
26 runTest();
27 </script> 15 </script>
28 </body> 16 </body>
29 </html> 17 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698