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

Side by Side Diff: LayoutTests/fast/events/constructors/custom-event-constructor.html

Issue 17063016: Remove leak of objects between isolated worlds on custom events. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Minor rebase nits. 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
« no previous file with comments | « no previous file | LayoutTests/fast/events/constructors/custom-event-constructor-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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../js/resources/js-test-pre.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 8
9 description("This tests the constructor for the CustomEvent DOM class."); 9 description("This tests the constructor for the CustomEvent DOM class.");
10 10
(...skipping 13 matching lines...) Expand all
24 // Detail is a string 24 // Detail is a string
25 shouldBe("new CustomEvent('eventType', { detail: \'string\' }).detail", "'string '"); 25 shouldBe("new CustomEvent('eventType', { detail: \'string\' }).detail", "'string '");
26 26
27 // Detail is an object 27 // Detail is an object
28 var detailObject = { }; 28 var detailObject = { };
29 shouldBe("new CustomEvent('eventType', { detail: detailObject }).detail", "detai lObject"); 29 shouldBe("new CustomEvent('eventType', { detail: detailObject }).detail", "detai lObject");
30 30
31 // Detail is a DOM object 31 // Detail is a DOM object
32 shouldBe("new CustomEvent('eventType', { detail: document }).detail", "document" ); 32 shouldBe("new CustomEvent('eventType', { detail: document }).detail", "document" );
33 33
34 // Detail is undefined.
35 shouldBe("new CustomEvent('eventType', { detail: undefined }).detail", "undefine d");
36
37 // Detail is null.
38 shouldBe("new CustomEvent('eventType', { detail: null }).detail", "null");
39
34 // Detail is a getter. 40 // Detail is a getter.
35 shouldBe("new CustomEvent('eventType', { get detail() { return true; } }).detail ", "true"); 41 shouldBe("new CustomEvent('eventType', { get detail() { return true; } }).detail ", "true");
36 42
37 // Detail throws an exeception. 43 // Detail throws an exeception.
38 shouldThrow("new CustomEvent('eventType', { get detail() { throw 'Custom Error'; } })"); 44 shouldThrow("new CustomEvent('eventType', { get detail() { throw 'Custom Error'; } })");
39 </script> 45 </script>
40 <script src="../../js/resources/js-test-post.js"></script> 46 <script src="../../js/resources/js-test-post.js"></script>
41 </body> 47 </body>
42 </html> 48 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/events/constructors/custom-event-constructor-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698