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

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

Issue 539453002: Crashed at ImageEventListener::cast & ConditionEventListener::cast (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | LayoutTests/fast/images/image-document-remove-listener-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <script src="../../resources/js-test.js"></script>
4 <body>
5 <script>
6 description("Test that removing invalid event listeners from image documents doe sn't crash.");
7
8 window.jsTestIsAsync = true;
9
10 if (window.testRunner) {
11 testRunner.dumpAsText();
12 testRunner.setCanOpenWindows();
13 testRunner.waitUntilDone();
14 }
15
16 function runTest()
17 {
18 var newWindow = window.open("resources/dice.png");
19 newWindow.onload = function() {
20 newWindow.addEventListener("resize", function () {;});
21 newWindow.removeEventListener("resize", 2);
22 testPassed("No crash.");
23 finishJSTest();
24 };
25 }
26 runTest();
27 </script>
28 </body>
29 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/images/image-document-remove-listener-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698