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

Side by Side Diff: LayoutTests/fast/images/zoomed-offset-size.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_wrap { 5 #test_wrap {
6 width: 250px; 6 width: 250px;
7 height: 166px; 7 height: 166px;
8 overflow: hidden; 8 overflow: hidden;
9 } 9 }
10 10
11 #test_img { 11 #test_img {
12 width: 100%; 12 width: 100%;
13 height: 100%; 13 height: 100%;
14 } 14 }
15 </style> 15 </style>
16 <script src="../js/resources/js-test-pre.js"></script> 16 <script src="../../resources/js-test.js"></script>
17 </head> 17 </head>
18 <body> 18 <body>
19 <div id="test_wrap"> 19 <div id="test_wrap">
20 <img id="test_img" src="resources/green-256x256.jpg"> 20 <img id="test_img" src="resources/green-256x256.jpg">
21 </div> 21 </div>
22 <p> 22 <p>
23 Image should return a size of 250x166 regardless of zoom level. 23 Image should return a size of 250x166 regardless of zoom level.
24 </p> 24 </p>
25 <script> 25 <script>
26 var imageElement = document.getElementById('test_img'); 26 var imageElement = document.getElementById('test_img');
(...skipping 13 matching lines...) Expand all
40 for (var i = 90; i <= 200; i += 5) { 40 for (var i = 90; i <= 200; i += 5) {
41 shouldBe('getSize(' + (i / 100) + ').imageWidth', '250'); 41 shouldBe('getSize(' + (i / 100) + ').imageWidth', '250');
42 shouldBe('getSize(' + (i / 100) + ').imageHeight', '166'); 42 shouldBe('getSize(' + (i / 100) + ').imageHeight', '166');
43 shouldBe('getSize(' + (i / 100) + ').wrapWidth', '250'); 43 shouldBe('getSize(' + (i / 100) + ').wrapWidth', '250');
44 shouldBe('getSize(' + (i / 100) + ').wrapHeight', '166'); 44 shouldBe('getSize(' + (i / 100) + ').wrapHeight', '166');
45 } 45 }
46 document.body.zoom = 1.0; 46 document.body.zoom = 1.0;
47 </script> 47 </script>
48 </body> 48 </body>
49 </html> 49 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/images/webgl-teximage2d.html ('k') | LayoutTests/fast/ime/candidatewindowevent.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698