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

Side by Side Diff: LayoutTests/fast/css/hover-display-block.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 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 #test { 5 #test {
6 font: "ahem"; 6 font: "ahem";
7 font-size: 50px; 7 font-size: 50px;
8 display: block; 8 display: block;
9 color: red; 9 color: red;
10 } 10 }
11 a:hover #test { 11 a:hover #test {
12 color: rgb(0, 255, 0); 12 color: rgb(0, 255, 0);
13 } 13 }
14 </style> 14 </style>
15 </head> 15 </head>
16 <body> 16 <body>
17 <div id="container"> 17 <div id="container">
18 <a href="#"> 18 <a href="#">
19 <span id="test">This text should be green when hovered.</span> 19 <span id="test">This text should be green when hovered.</span>
20 </a> 20 </a>
21 </div> 21 </div>
22 </body> 22 </body>
23 23
24 <script src="../js/resources/js-test-pre.js"></script> 24 <script src="../../resources/js-test.js"></script>
25 <script> 25 <script>
26 if (window.testRunner) { 26 if (window.testRunner) {
27 description("Hover should work for :display block elements (regressed in crb ug.com/253472)") 27 description("Hover should work for :display block elements (regressed in crb ug.com/253472)")
28 var test = document.getElementById('test'); 28 var test = document.getElementById('test');
29 var container = document.getElementById('container'); 29 var container = document.getElementById('container');
30 test.offsetTop; 30 test.offsetTop;
31 eventSender.mouseMoveTo(50, container.offsetTop + 25) 31 eventSender.mouseMoveTo(50, container.offsetTop + 25)
32 test.offsetTop; 32 test.offsetTop;
33 shouldBeEqualToString("getComputedStyle(test, null).color", 'rgb(0, 255, 0)' ) 33 shouldBeEqualToString("getComputedStyle(test, null).color", 'rgb(0, 255, 0)' )
34 container.parentNode.removeChild(container); // clean up after ourselves. 34 container.parentNode.removeChild(container); // clean up after ourselves.
35 } 35 }
36 successfullyParsed = true; 36 successfullyParsed = true;
37 </script> 37 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/hover-active-drag.html ('k') | LayoutTests/fast/css/hover-display-block-inline.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698