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

Side by Side Diff: LayoutTests/fast/dom/inline-event-attributes-lookup.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 <form id="test-form"> 3 <form id="test-form">
4 <input id="test-input"> 4 <input id="test-input">
5 </form> 5 </form>
6 <script> 6 <script>
7 7
8 description('Tests the lookup in inline event handlers'); 8 description('Tests the lookup in inline event handlers');
9 9
10 function dispatchClick(element) 10 function dispatchClick(element)
11 { 11 {
12 var clickEvent = document.createEvent('MouseEvent'); 12 var clickEvent = document.createEvent('MouseEvent');
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 div.setAttribute('onclick', 'result = this'); 60 div.setAttribute('onclick', 'result = this');
61 dispatchClick(div); 61 dispatchClick(div);
62 shouldBe('result', 'div'); 62 shouldBe('result', 'div');
63 63
64 div.event = 'FAIL'; 64 div.event = 'FAIL';
65 div.setAttribute('onclick', 'result = event'); 65 div.setAttribute('onclick', 'result = event');
66 dispatchClick(div); 66 dispatchClick(div);
67 shouldNotBe('result', '"FAIL"'); 67 shouldNotBe('result', '"FAIL"');
68 68
69 </script> 69 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698