From: <rb...@us...> - 2013-11-09 13:51:31
|
Revision: 8758 http://sourceforge.net/p/htmlunit/code/8758 Author: rbri Date: 2013-11-09 13:51:26 +0000 (Sat, 09 Nov 2013) Log Message: ----------- a bit FF24 hacking Modified Paths: -------------- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/TreeWalker.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/regexp/mozilla/js1_2/SimpleFormTest.java Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/TreeWalker.java =================================================================== --- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/TreeWalker.java 2013-11-09 13:32:05 UTC (rev 8757) +++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/TreeWalker.java 2013-11-09 13:51:26 UTC (rev 8758) @@ -14,6 +14,9 @@ */ package com.gargoylesoftware.htmlunit.javascript.host; +import static com.gargoylesoftware.htmlunit.javascript.configuration.BrowserName.CHROME; +import static com.gargoylesoftware.htmlunit.javascript.configuration.BrowserName.FF; +import static com.gargoylesoftware.htmlunit.javascript.configuration.BrowserName.IE; import net.sourceforge.htmlunit.corejs.javascript.Context; import org.w3c.dom.DOMException; @@ -23,6 +26,7 @@ import com.gargoylesoftware.htmlunit.javascript.configuration.JsxFunction; import com.gargoylesoftware.htmlunit.javascript.configuration.JsxGetter; import com.gargoylesoftware.htmlunit.javascript.configuration.JsxSetter; +import com.gargoylesoftware.htmlunit.javascript.configuration.WebBrowser; /** * The JavaScript object that represents a TreeWalker. @@ -116,7 +120,7 @@ * * @return the value of the expandEntityReferences flag */ - @JsxGetter + @JsxGetter({@WebBrowser(value = FF, maxVersion = 20), @WebBrowser(IE), @WebBrowser(CHROME) }) public boolean getExpandEntityReferences() { return expandEntityReferences_; } Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/regexp/mozilla/js1_2/SimpleFormTest.java =================================================================== --- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/regexp/mozilla/js1_2/SimpleFormTest.java 2013-11-09 13:32:05 UTC (rev 8757) +++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/regexp/mozilla/js1_2/SimpleFormTest.java 2013-11-09 13:51:26 UTC (rev 8758) @@ -16,6 +16,7 @@ import static com.gargoylesoftware.htmlunit.BrowserRunner.Browser.CHROME; import static com.gargoylesoftware.htmlunit.BrowserRunner.Browser.FF17; +import static com.gargoylesoftware.htmlunit.BrowserRunner.Browser.FF24; import static com.gargoylesoftware.htmlunit.BrowserRunner.Browser.IE; import org.junit.Test; @@ -41,7 +42,7 @@ */ @Test @Alerts("exception") - @NotYetImplemented({ IE, FF17, CHROME }) + @NotYetImplemented({ IE, FF17, FF24, CHROME }) public void test1() throws Exception { test("/[0-9]{3}/('23 2 34 678 9 09')"); } @@ -52,7 +53,7 @@ */ @Test @Alerts(DEFAULT = "exception") - @NotYetImplemented({ IE, FF17, CHROME }) + @NotYetImplemented({ IE, FF17, FF24, CHROME }) public void test2() throws Exception { test("/3.{4}8/('23 2 34 678 9 09')"); } @@ -63,7 +64,7 @@ */ @Test @Alerts(DEFAULT = "exception") - @NotYetImplemented({ IE, FF17, CHROME }) + @NotYetImplemented({ IE, FF17, FF24, CHROME }) public void test3() throws Exception { test("(/3.{4}8/('23 2 34 678 9 09')).length"); } @@ -74,7 +75,7 @@ */ @Test @Alerts(DEFAULT = "exception") - @NotYetImplemented({ IE, FF17, CHROME }) + @NotYetImplemented({ IE, FF17, FF24, CHROME }) public void test4() throws Exception { test("var re = /[0-9]{3}/", "re('23 2 34 678 9 09')"); } @@ -85,7 +86,7 @@ */ @Test @Alerts(DEFAULT = "exception") - @NotYetImplemented({ IE, FF17, CHROME }) + @NotYetImplemented({ IE, FF17, FF24, CHROME }) public void test5() throws Exception { test("var re = /3.{4}8/", "re('23 2 34 678 9 09')"); } @@ -96,7 +97,7 @@ */ @Test @Alerts("exception") - @NotYetImplemented({ IE, FF17, CHROME }) + @NotYetImplemented({ IE, FF17, FF24, CHROME }) public void test6() throws Exception { test("/3.{4}8/('23 2 34 678 9 09')"); } @@ -107,7 +108,7 @@ */ @Test @Alerts("exception") - @NotYetImplemented({ IE, FF17, CHROME }) + @NotYetImplemented({ IE, FF17, FF24, CHROME }) public void test7() throws Exception { test("var re =/3.{4}8/", "(re('23 2 34 678 9 09')).length"); } @@ -118,7 +119,7 @@ */ @Test @Alerts("exception") - @NotYetImplemented({ IE, FF17, CHROME }) + @NotYetImplemented({ IE, FF17, FF24, CHROME }) public void test8() throws Exception { test("(/3.{4}8/('23 2 34 678 9 09')).length"); } |