Skip to content

Commit fcc2567

Browse files
committed
reflect last rhino changes, some features are no longer in use -> remove the tests
1 parent da701b2 commit fcc2567

File tree

3 files changed

+2
-192
lines changed

3 files changed

+2
-192
lines changed

src/test/java/net/sourceforge/htmlunit/NativeErrorTest.java

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -86,20 +86,6 @@ public Object run(final Context cx) {
8686
*/
8787
@Test
8888
public void stackNewErrorWithoutThrow() throws Exception {
89-
stackNewErrorWithoutThrow(true, "string");
90-
stackNewErrorWithoutThrow(false, "undefined");
91-
}
92-
93-
private static void stackNewErrorWithoutThrow(final boolean hasFeature, final String expected) throws Exception {
94-
final ContextFactory cf = new ContextFactory() {
95-
@Override
96-
protected boolean hasFeature(Context cx, int featureIndex) {
97-
if (Context.FEATURE_HTMLUNIT_ERROR_STACK == featureIndex) {
98-
return hasFeature;
99-
}
100-
return super.hasFeature(cx, featureIndex);
101-
}
102-
};
10389
final String script = "function test() {\n"
10490
+ " var e = new Error();\n"
10591
+ " if (e.stack)\n"
@@ -116,12 +102,12 @@ protected boolean hasFeature(Context cx, int featureIndex) {
116102
public Object run(final Context cx) {
117103
final Scriptable scope = cx.initSafeStandardObjects();
118104
final Object result = cx.evaluateString(scope, script, "test.js", 1, null);
119-
assertEquals(expected, result);
105+
assertEquals("string", result);
120106
return null;
121107
}
122108
};
123109

124-
Utils.runWithAllOptimizationLevels(cf, action);
110+
Utils.runWithAllOptimizationLevels(action);
125111
}
126112

127113
}

src/test/java/net/sourceforge/htmlunit/SetReadOnlyPropertyTest.java

Lines changed: 0 additions & 83 deletions
This file was deleted.

src/test/java/net/sourceforge/htmlunit/WriteReadOnlyPropertyTest.java

Lines changed: 0 additions & 93 deletions
This file was deleted.

0 commit comments

Comments
 (0)