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

Side by Side Diff: third_party/WebKit/LayoutTests/images/border.html

Issue 2496663002: Merge css3/image/ and fast/images/ to images/ (Closed)
Patch Set: Address failing tests (3 of them) Created 4 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>This tests the HTMLImageElement border property.</title> 2 <title>This tests the HTMLImageElement border property.</title>
3 <body> 3 <body>
4 <script src="../../resources/testharness.js"></script> 4 <script src="../resources/testharness.js"></script>
5 <script src="../../resources/testharnessreport.js"></script> 5 <script src="../resources/testharnessreport.js"></script>
6 <script type="text/javascript"> 6 <script type="text/javascript">
7 function imageBorderWidth(borderValue, style) { 7 function imageBorderWidth(borderValue, style) {
8 var image = document.createElement("img"); 8 var image = document.createElement("img");
9 if (borderValue !== undefined) 9 if (borderValue !== undefined)
10 image.setAttribute("border", borderValue); 10 image.setAttribute("border", borderValue);
11 image.setAttribute("style", style); 11 image.setAttribute("style", style);
12 image.setAttribute("width", "0"); 12 image.setAttribute("width", "0");
13 document.body.appendChild(image); 13 document.body.appendChild(image);
14 var borderBoxWidth = image.offsetWidth; 14 var borderBoxWidth = image.offsetWidth;
15 document.body.removeChild(image); 15 document.body.removeChild(image);
(...skipping 17 matching lines...) Expand all
33 assert_equals(imageBorderWidth(' 10'), 10); 33 assert_equals(imageBorderWidth(' 10'), 10);
34 assert_equals(imageBorderWidth('10 '), 10); 34 assert_equals(imageBorderWidth('10 '), 10);
35 assert_equals(imageBorderWidth(' 10 '), 10); 35 assert_equals(imageBorderWidth(' 10 '), 10);
36 assert_equals(imageBorderWidth('10q'), 10); 36 assert_equals(imageBorderWidth('10q'), 10);
37 assert_equals(imageBorderWidth(' 10q'), 10); 37 assert_equals(imageBorderWidth(' 10q'), 10);
38 assert_equals(imageBorderWidth('10q '), 10); 38 assert_equals(imageBorderWidth('10q '), 10);
39 assert_equals(imageBorderWidth(' 10q '), 10); 39 assert_equals(imageBorderWidth(' 10q '), 10);
40 }); 40 });
41 </script> 41 </script>
42 42
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698