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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLTableElement/createCaption.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
(Empty)
1 <html>
2 <head>
3 <title>createCaption() test</title>
4 <script type="text/javascript">
5
6 function captionfruit() {
7 var x = document.getElementById('fruitTable').createCaption()
8 x.innerHTML="<b>Fruity</b>"
9 }
10
11 function captionveggie() {
12 var x = document.getElementById('veggieTable').createCaption()
13 x.innerHTML="<b>Vegetabley</b>"
14 }
15 </script>
16 </head>
17
18 <body onload = "captionfruit(); captionveggie()">
19 <p>Tests: the TABLE.createCaption() method<br>
20 </p>
21 <p>Conditions:<br>
22 If no caption exists, the method should create an empty caption, add it to the t able, and return a pointer to it.
23 If a caption does exist, the method should return a pointer to it.
24 </p>
25
26 <p>If successful, the first table should have the caption <b>Fruity</b>, and the second table should have the caption
27 <b>Vegetabley</b>. Upon failure, the first table will have no caption, and the s econd table will have the caption
28 Things.
29 </p>
30 <hr>
31
32 <table id="fruitTable" border="1">
33 <tr>
34 <th>Fruit</th>
35 <th>Color</th>
36 </tr>
37 <tr>
38 <td>Banana</td>
39 <td>Yellow</td>
40 </tr>
41 <tr>
42 <td>Grape</td>
43 <td>Purple</td>
44 </tr>
45 </table>
46
47 <br>
48
49 <table id="veggieTable" border="1">
50 <caption> Things </caption>
51 <tr>
52 <th>Vegetable</th>
53 <th>Color</th>
54 </tr>
55 <tr>
56 <td>Carrot</td>
57 <td>Orange</td>
58 </tr>
59 <tr>
60 <td>Cucumber</td>
61 <td>Green</td>
62 </tr>
63 </table>
64
65 </body>
66 </html>
67
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698