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

Side by Side Diff: LayoutTests/fast/events/scroll-event-during-modal-dialog.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 2
3 <style> 3 <style>
4 #scrollable { 4 #scrollable {
5 height: 200px; 5 height: 200px;
6 width: 200px; 6 width: 200px;
7 overflow: scroll; 7 overflow: scroll;
8 } 8 }
9 #scrollable div { 9 #scrollable div {
10 height: 1000px; 10 height: 1000px;
11 } 11 }
12 </style> 12 </style>
13 13
14 <script src="../js/resources/js-test-pre.js"></script> 14 <script src="../../resources/js-test.js"></script>
15 15
16 <div id="scrollable"><div></div></div> 16 <div id="scrollable"><div></div></div>
17 17
18 <script type="text/javascript"> 18 <script type="text/javascript">
19 if (window.testRunner) 19 if (window.testRunner)
20 testRunner.setCanOpenWindows(); 20 testRunner.setCanOpenWindows();
21 21
22 var jsTestIsAsync = true; 22 var jsTestIsAsync = true;
23 var scrollable = document.getElementById('scrollable'); 23 var scrollable = document.getElementById('scrollable');
24 24
25 description('Tests that scroll events are not fired while modal dialogs are disp layed.'); 25 description('Tests that scroll events are not fired while modal dialogs are disp layed.');
26 26
27 scrollable.onscroll = function() { 27 scrollable.onscroll = function() {
28 debug('Scroll handler fired'); 28 debug('Scroll handler fired');
29 dialog.close(); 29 dialog.close();
30 } 30 }
31 31
32 onload = function() { 32 onload = function() {
33 debug('Showing modal dialog'); 33 debug('Showing modal dialog');
34 showModalDialog('resources/scroll-event-modal-dialog.html'); 34 showModalDialog('resources/scroll-event-modal-dialog.html');
35 debug('Returned from modal dialog'); 35 debug('Returned from modal dialog');
36 finishJSTest(); 36 finishJSTest();
37 } 37 }
38 </script> 38 </script>
39 39
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/script-tests/TEMPLATE.html ('k') | LayoutTests/fast/events/select-element.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698