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

Unified Diff: javatests/org/chromium/distiller/OpenGraphProtocolParserTest.java

Issue 1784073002: Clean attributes of mRoot between tests properly (Closed) Base URL: git@github.com:chromium/dom-distiller.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: javatests/org/chromium/distiller/OpenGraphProtocolParserTest.java
diff --git a/javatests/org/chromium/distiller/OpenGraphProtocolParserTest.java b/javatests/org/chromium/distiller/OpenGraphProtocolParserTest.java
index ada310dc11e0d5e70d7c5800fb79fc574fc923e6..6389000cb318e81a0bdcdf92ecd7e38bf4ca2177 100644
--- a/javatests/org/chromium/distiller/OpenGraphProtocolParserTest.java
+++ b/javatests/org/chromium/distiller/OpenGraphProtocolParserTest.java
@@ -434,20 +434,6 @@ public class OpenGraphProtocolParserTest extends DomDistillerJsTestCase {
assertEquals("", parser.getDescription());
}
- @Override
- protected void gwtSetUp() throws Exception {
- super.gwtSetUp();
-
- // Remove all attributes that specify prefix or namespace, so that each
- // testcase starts with clean HTML and HEAD tags. Otherwise. a testcase
- // may run with the attributes set in a previous testcase, resulting in
- // unexpected results.
- mRoot.removeAttribute("prefix");
- mRoot.removeAttribute("xmlns:tstog");
- mRoot.removeAttribute("xmlns:tstpf");
- mRoot.removeAttribute("xmlns:tsta");
- }
-
private void createDefaultTitle() {
createMeta("og:title", "dummy title");
}

Powered by Google App Engine
This is Rietveld 408576698