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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/html/semantics/tabular-data/the-tr-element/deleteCell.html

Issue 2446483002: Import wpt@c5a14f553cba5f197743b9af605a84eddd8692a2 (Closed)
Patch Set: 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 <meta charset="utf-8"> 2 <meta charset="utf-8">
3 <title>HTMLTableRowElement#deleteCell</title> 3 <title>HTMLTableRowElement#deleteCell</title>
4 <link rel="author" title="Intel" href="http://www.intel.com/"> 4 <link rel="author" title="Intel" href="http://www.intel.com/">
5 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharness.js"></script>
6 <script src="/resources/testharnessreport.js"></script> 6 <script src="/resources/testharnessreport.js"></script>
7 7
8 <div id="log"></div> 8 <div id="log"></div>
9 9
10 <table> 10 <table>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 }, "HTMLTableRowElement deleteCell(cells.length)"); 44 }, "HTMLTableRowElement deleteCell(cells.length)");
45 45
46 test(function () { 46 test(function () {
47 assert_equals(tr.cells.length, 1); 47 assert_equals(tr.cells.length, 1);
48 tr.deleteCell(-1); 48 tr.deleteCell(-1);
49 assert_equals(tr.cells.length, 0); 49 assert_equals(tr.cells.length, 0);
50 tr.deleteCell(-1); 50 tr.deleteCell(-1);
51 assert_equals(tr.cells.length, 0); 51 assert_equals(tr.cells.length, 0);
52 }, "HTMLTableRowElement deleteCell(-1) with no cells"); 52 }, "HTMLTableRowElement deleteCell(-1) with no cells");
53 53
54 test(function () {
55 assert_equals(tr.cells.length, 0);
56 assert_throws("IndexSizeError", function () {
57 tr.deleteCell(0);
58 });
59 }, "HTMLTableRowElement deleteCell(0) with no cells");
60
54 </script> 61 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698