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

Side by Side Diff: LayoutTests/fast/css/hover-active-drag.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 <style> 2 <style>
3 div { background: rgb(0, 0, 0); } 3 div { background: rgb(0, 0, 0); }
4 div:hover { background: rgb(255, 0, 0); } 4 div:hover { background: rgb(255, 0, 0); }
5 div:hover:active { background: rgb(255, 255, 0); } 5 div:hover:active { background: rgb(255, 255, 0); }
6 div:active { background: rgb(0, 255, 0); } 6 div:active { background: rgb(0, 255, 0); }
7 div { 7 div {
8 width: 100px; 8 width: 100px;
9 height: 100px; 9 height: 100px;
10 border: 2px solid rgb(0, 0, 255); 10 border: 2px solid rgb(0, 0, 255);
11 } 11 }
12 </style> 12 </style>
13 13
14 <body> 14 <body>
15 <div id="box"></div> 15 <div id="box"></div>
16 <div id="box2"></div> 16 <div id="box2"></div>
17 <pre id="description"></div> 17 <pre id="description"></div>
18 <pre id="console"></pre> 18 <pre id="console"></pre>
19 </body> 19 </body>
20 20
21 <script src="../js/resources/js-test-pre.js"></script> 21 <script src="../../resources/js-test.js"></script>
22 <script> 22 <script>
23 function shouldHaveBackground(element, bg) { 23 function shouldHaveBackground(element, bg) {
24 background = getComputedStyle(element, null).getPropertyValue("background-co lor") 24 background = getComputedStyle(element, null).getPropertyValue("background-co lor")
25 shouldBeEqualToString('background', bg) 25 shouldBeEqualToString('background', bg)
26 } 26 }
27 27
28 if (window.testRunner) { 28 if (window.testRunner) {
29 description("Dragging out of an element should cause it to lose :hover") 29 description("Dragging out of an element should cause it to lose :hover")
30 var box = document.getElementById('box') 30 var box = document.getElementById('box')
31 var box2 = document.getElementById('box2') 31 var box2 = document.getElementById('box2')
(...skipping 22 matching lines...) Expand all
54 // Mouse still down, move outside of both boxes. 54 // Mouse still down, move outside of both boxes.
55 eventSender.mouseMoveTo(400, 50) 55 eventSender.mouseMoveTo(400, 50)
56 shouldHaveBackground(box, 'rgb(0, 255, 0)') 56 shouldHaveBackground(box, 'rgb(0, 255, 0)')
57 shouldHaveBackground(box2, 'rgb(0, 0, 0)') 57 shouldHaveBackground(box2, 'rgb(0, 0, 0)')
58 58
59 eventSender.mouseUp() 59 eventSender.mouseUp()
60 shouldHaveBackground(box, 'rgb(0, 0, 0)') 60 shouldHaveBackground(box, 'rgb(0, 0, 0)')
61 shouldHaveBackground(box2, 'rgb(0, 0, 0)') 61 shouldHaveBackground(box2, 'rgb(0, 0, 0)')
62 } 62 }
63 </script> 63 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/getPropertyValue-webkit-text-stroke.html ('k') | LayoutTests/fast/css/hover-display-block.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698