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

Side by Side Diff: javatests/org/chromium/distiller/webdocument/WebTableTest.java

Issue 1725243002: Fix some warnings in Eclipse (Closed) Base URL: git@github.com:chromium/dom-distiller.git@master
Patch Set: address comments Created 4 years, 7 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.distiller.webdocument; 5 package org.chromium.distiller.webdocument;
6 6
7 import org.chromium.distiller.DomDistillerJsTestCase; 7 import org.chromium.distiller.DomDistillerJsTestCase;
8 import org.chromium.distiller.TestUtil; 8 import org.chromium.distiller.TestUtil;
9 9
10 import com.google.gwt.dom.client.Document; 10 import com.google.gwt.dom.client.Document;
11 import com.google.gwt.dom.client.Element; 11 import com.google.gwt.dom.client.Element;
12 import com.google.gwt.dom.client.Node;
13
14 import java.util.List;
15 12
16 public class WebTableTest extends DomDistillerJsTestCase { 13 public class WebTableTest extends DomDistillerJsTestCase {
17 public void testGenerateOutput() { 14 public void testGenerateOutput() {
18 Element table = Document.get().createTableElement(); 15 Element table = Document.get().createTableElement();
19 String html = "<tbody>" + 16 String html = "<tbody>" +
20 "<tr>" + 17 "<tr>" +
21 "<td>row1col1</td>" + 18 "<td>row1col1</td>" +
22 "<td><img src=\"http://example.com/table.png\"></t d>" + 19 "<td><img src=\"http://example.com/table.png\"></t d>" +
23 "</tr>" + 20 "</tr>" +
24 "</tbody>"; 21 "</tbody>";
25 table.setInnerHTML(html); 22 table.setInnerHTML(html);
26 mBody.appendChild(table); 23 mBody.appendChild(table);
27 24
28 WebTable webTable = new WebTable(table); 25 WebTable webTable = new WebTable(table);
29 String got = webTable.generateOutput(false); 26 String got = webTable.generateOutput(false);
30 27
31 // Output should be the same as the input in this case. 28 // Output should be the same as the input in this case.
32 assertEquals("<table>" + html + "</table>", TestUtil.removeAllDirAttribu tes(got)); 29 assertEquals("<table>" + html + "</table>", TestUtil.removeAllDirAttribu tes(got));
33 } 30 }
34 } 31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698