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

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

Issue 2246303003: Use testharness.js instead of js-test.js in fast/images. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Modify test as per the comments. Created 4 years, 4 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 | third_party/WebKit/LayoutTests/fast/images/cmyk-jpeg-with-color-profile.html » ('j') | 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 PUBLIC "-//IETF//DTD HTML//EN"> 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);
(...skipping 21 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/images/cmyk-jpeg-with-color-profile.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698