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

Side by Side Diff: third_party/WebKit/LayoutTests/html/tabular_data/table_cellpadding.html

Issue 2785963002: Move tests for table elements to LayoutTests/html/tabular_data/. (Closed)
Patch Set: Created 3 years, 8 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
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 description("HTMLTableElement cellpadding attribute test"); 8 description("HTMLTableElement cellpadding attribute test");
9 9
10 function cellPaddingAttributeEffect(value) 10 function cellPaddingAttributeEffect(value)
11 { 11 {
12 var table = document.createElement("table"); 12 var table = document.createElement("table");
13 table.setAttribute("cellpadding", value); 13 table.setAttribute("cellpadding", value);
14 var cell = document.createElement("td"); 14 var cell = document.createElement("td");
(...skipping 23 matching lines...) Expand all
38 shouldBe('cellPaddingAttributeEffect("2.9")', '"2px"'); 38 shouldBe('cellPaddingAttributeEffect("2.9")', '"2px"');
39 39
40 shouldBe('cellPaddingAttributeEffect("a")', '"0px"'); 40 shouldBe('cellPaddingAttributeEffect("a")', '"0px"');
41 41
42 var arabicIndicDigitOne = String.fromCharCode(0x661); 42 var arabicIndicDigitOne = String.fromCharCode(0x661);
43 shouldBe('cellPaddingAttributeEffect(arabicIndicDigitOne)', '"0px"'); 43 shouldBe('cellPaddingAttributeEffect(arabicIndicDigitOne)', '"0px"');
44 shouldBe('cellPaddingAttributeEffect("2" + arabicIndicDigitOne)', '"2px"'); 44 shouldBe('cellPaddingAttributeEffect("2" + arabicIndicDigitOne)', '"2px"');
45 </script> 45 </script>
46 </body> 46 </body>
47 </html> 47 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698