From: <mgu...@us...> - 2013-01-08 08:53:05
|
Revision: 7954 http://sourceforge.net/p/htmlunit/code/7954 Author: mguillem Date: 2013-01-08 08:52:59 +0000 (Tue, 08 Jan 2013) Log Message: ----------- fixed Storage tests for FF17 Modified Paths: -------------- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/BrowserVersionFeatures.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/StorageTest.java Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/BrowserVersionFeatures.java =================================================================== --- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/BrowserVersionFeatures.java 2013-01-08 08:40:45 UTC (rev 7953) +++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/BrowserVersionFeatures.java 2013-01-08 08:52:59 UTC (rev 7954) @@ -1139,7 +1139,7 @@ SET_READONLY_PROPERTIES, /** Indicates [object StorageObsolete] instead of [object Storage]. */ - @BrowserFeature({ @WebBrowser(FF), @WebBrowser(CHROME) }) + @BrowserFeature({ @WebBrowser(value = FF, maxVersion = 10), @WebBrowser(CHROME) }) STORAGE_OBSOLETE, /** Indicates that string.trim(), .trimLeft() and .trimRight() are supported. */ Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/StorageTest.java =================================================================== --- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/StorageTest.java 2013-01-08 08:40:45 UTC (rev 7953) +++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/StorageTest.java 2013-01-08 08:52:59 UTC (rev 7954) @@ -43,7 +43,8 @@ */ @Test @Alerts(IE = { "undefined", "undefined", "undefined" }, IE8 = { "undefined", "[object]", "[object]" }, - FF = { "[object StorageList]", "[object Storage]", "[object Storage]" }) + FF = { "[object StorageList]", "[object Storage]", "[object Storage]" }, + FF17 = { "undefined", "[object Storage]", "[object Storage]" }) @NotYetImplemented(FF3_6) public void storage() throws Exception { final String html @@ -139,7 +140,8 @@ * @throws Exception if the test fails */ @Test - @Alerts(FF = { "[object StorageObsolete]", "error" }) + @Alerts(FF3_6 = { "[object StorageObsolete]", "error" }, + FF10 = { "[object StorageObsolete]", "error" }) public void globalStorage() throws Exception { final String html = "<html><head></head><body>\n" |