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

Side by Side Diff: LayoutTests/fast/dom/inline-event-attributes-event-param-name.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../js/resources/js-test-pre.js"></script> 2 <script src="../../resources/js-test.js"></script>
3 <script> 3 <script>
4 4
5 description('Tests the name of the event parameter for inline event attributes') ; 5 description('Tests the name of the event parameter for inline event attributes') ;
6 6
7 function dispatchClick(element) 7 function dispatchClick(element)
8 { 8 {
9 var clickEvent = document.createEvent('MouseEvent'); 9 var clickEvent = document.createEvent('MouseEvent');
10 clickEvent.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false , false, false, false, 0, null); 10 clickEvent.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false , false, false, false, 0, null);
11 element.dispatchEvent(clickEvent); 11 element.dispatchEvent(clickEvent);
12 } 12 }
(...skipping 16 matching lines...) Expand all
29 // Clear out window.event so that we get the local event and not the global even t. 29 // Clear out window.event so that we get the local event and not the global even t.
30 svg.setAttribute('onclick', 'window.event = undefined; type = typeof event'); 30 svg.setAttribute('onclick', 'window.event = undefined; type = typeof event');
31 dispatchClick(svg); 31 dispatchClick(svg);
32 shouldBeEqualToString('type', 'undefined') 32 shouldBeEqualToString('type', 'undefined')
33 33
34 svg.setAttribute('onclick', 'type = typeof evt'); 34 svg.setAttribute('onclick', 'type = typeof evt');
35 dispatchClick(svg); 35 dispatchClick(svg);
36 shouldBeEqualToString('type', 'object') 36 shouldBeEqualToString('type', 'object')
37 37
38 </script> 38 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/incompatible-operations.html ('k') | LayoutTests/fast/dom/inline-event-attributes-lookup.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698