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

Side by Side Diff: LayoutTests/svg/as-image/svg-as-image-intrinsic-size.html

Issue 1011393006: Fix typo in layout test in rarely taken code branch (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Test that intrinsic height can be resolved</title> 2 <title>Test that intrinsic height can be resolved</title>
3 <script src="../../resources/testharness.js"></script> 3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script> 4 <script src="../../resources/testharnessreport.js"></script>
5 <img src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='300' viewBox='0 180 150 220' style='background:blue'></svg>"> 5 <img src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='300' viewBox='0 180 150 220' style='background:blue'></svg>">
6 <img src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' height='440 ' viewBox='0 180 150 220' style='background:purple'></svg>"> 6 <img src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' height='440 ' viewBox='0 180 150 220' style='background:purple'></svg>">
7 <script> 7 <script>
8 var imgs = document.getElementsByTagName('img'); 8 var imgs = document.getElementsByTagName('img');
9 function waitForComplete(img, i) { 9 function waitForComplete(img, i) {
10 if (img.complete) { 10 if (img.complete) {
11 assert_equals(img.width, 300); 11 assert_equals(img.width, 300);
12 assert_equals(img.height, 440); 12 assert_equals(img.height, 440);
13 this.done(); 13 this.done();
14 } else { 14 } else {
15 setTimeout(t.step_func(waitForComplete.bind(this, img, i + 1)), 1); 15 setTimeout(this.step_func(waitForComplete.bind(this, img, i + 1)), 1);
16 } 16 }
17 } 17 }
18 18
19 var t1 = async_test("Test that intrinsic height can be calculated from intrins ic width and intrinsic ratio"); 19 var t1 = async_test("Test that intrinsic height can be calculated from intrins ic width and intrinsic ratio");
20 t1.step(waitForComplete.bind(t1, imgs[0], 0)); 20 t1.step(waitForComplete.bind(t1, imgs[0], 0));
21 21
22 var t2 = async_test("Test that intrinsic width can be calculated from intrinsi c height and intrinsic ratio"); 22 var t2 = async_test("Test that intrinsic width can be calculated from intrinsi c height and intrinsic ratio");
23 t2.step(waitForComplete.bind(t2, imgs[1], 0)); 23 t2.step(waitForComplete.bind(t2, imgs[1], 0));
24 </script> 24 </script>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698