Skip to content

Commit

Permalink
Bump the hmltunit version to 2.14
Browse files Browse the repository at this point in the history
This also fixes the buck builds. There are two known build failures in the htmlunit JS
tests, but these failed with the prior release, and so we're functionally equivalent.
  • Loading branch information
shs96c committed May 12, 2014
1 parent 00f9aea commit 62a47fd
Show file tree
Hide file tree
Showing 62 changed files with 85 additions and 77 deletions.
4 changes: 2 additions & 2 deletions .idea/libraries/commons_codec.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions .idea/libraries/commons_httpclient.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .idea/libraries/commons_io.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .idea/libraries/commons_lang.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/libraries/commons_logging.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions .idea/libraries/htmlunit.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions .idea/libraries/nekohtml.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions .idea/libraries/xml_apis.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -243,19 +243,15 @@ static BrowserVersion determineBrowserVersion(Capabilities capabilities) {
try {
int version = Integer.parseInt(browserVersion);
switch (version) {
case 6:
return BrowserVersion.INTERNET_EXPLORER_6;
case 7:
return BrowserVersion.INTERNET_EXPLORER_7;
case 8:
return BrowserVersion.INTERNET_EXPLORER_8;
case 9:
return BrowserVersion.INTERNET_EXPLORER_9;
default:
return BrowserVersion.INTERNET_EXPLORER_8;
return BrowserVersion.INTERNET_EXPLORER_11;
}
} catch (NumberFormatException e) {
return BrowserVersion.INTERNET_EXPLORER_8;
return BrowserVersion.INTERNET_EXPLORER_11;
}
}

Expand Down
9 changes: 8 additions & 1 deletion java/client/src/org/openqa/selenium/remote/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ java_library(
java_library(name = 'remote',
srcs = [
'BeanToJsonConverter.java',
'CommandCodec.java',
'CommandInfo.java',
'CoordinatesUtils.java',
'DriverCommand.java',
Expand All @@ -52,18 +53,24 @@ java_library(name = 'remote',
'RemoteTouchScreen.java',
'RemoteWebDriver.java',
'RemoteWebElement.java',
'ResponseCodec.java',
'ScreenshotException.java',
'SessionNotFoundException.java',
'SimplePropertyDescriptor.java',
'UnreachableBrowserException.java',
'UselessFileDetector.java',
'html5/RemoteApplicationCache.java',
'html5/RemoteBrowserConnection.java',
'html5/RemoteDatabaseStorage.java',
'html5/RemoteLocalStorage.java',
'html5/RemoteLocationContext.java',
'html5/RemoteSessionStorage.java',
'html5/RemoteWebStorage.java',
'http/HttpMessage.java',
'http/HttpMethod.java',
'http/HttpRequest.java',
'http/HttpResponse.java',
'http/JsonHttpCommandCodec.java',
'http/JsonHttpResponseCodec.java',
'internal/CircularOutputStream.java',
'internal/HttpClientFactory.java',
'internal/JsonToWebElementConverter.java',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,11 @@
public class HtmlUnitCapabilitiesTest {
@Test
public void configurationViaDirectCapabilities() {
DesiredCapabilities ie7Capabilities =
new DesiredCapabilities(BrowserType.IE, "7", Platform.ANY);

assertEquals(HtmlUnitDriver.determineBrowserVersion(ie7Capabilities),
BrowserVersion.INTERNET_EXPLORER_7);

DesiredCapabilities ieCapabilities =
new DesiredCapabilities(BrowserType.IE, "", Platform.ANY);

assertEquals(HtmlUnitDriver.determineBrowserVersion(ieCapabilities),
BrowserVersion.INTERNET_EXPLORER_8);
BrowserVersion.INTERNET_EXPLORER_11);

DesiredCapabilities firefoxCapabilities =
new DesiredCapabilities(BrowserType.FIREFOX, "", Platform.ANY);
Expand All @@ -68,13 +62,13 @@ public void configurationOfIEViaRemote() {
new DesiredCapabilities(BrowserType.HTMLUNIT, "internet explorer", Platform.ANY);

assertEquals(HtmlUnitDriver.determineBrowserVersion(ieCapabilities),
BrowserVersion.INTERNET_EXPLORER_8);
BrowserVersion.INTERNET_EXPLORER_11);

DesiredCapabilities ie7Capabilities =
new DesiredCapabilities(BrowserType.HTMLUNIT, "internet explorer-7", Platform.ANY);
DesiredCapabilities ie8Capabilities =
new DesiredCapabilities(BrowserType.HTMLUNIT, "internet explorer-8", Platform.ANY);

assertEquals(HtmlUnitDriver.determineBrowserVersion(ie7Capabilities),
BrowserVersion.INTERNET_EXPLORER_7);
assertEquals(HtmlUnitDriver.determineBrowserVersion(ie8Capabilities),
BrowserVersion.INTERNET_EXPLORER_8);
}

@Test
Expand Down
7 changes: 1 addition & 6 deletions java/client/test/org/openqa/selenium/remote/HttpRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import org.openqa.selenium.remote.internal.HttpClientFactory;

import java.io.IOException;
import java.io.UnsupportedEncodingException;


public class HttpRequest {
Expand Down Expand Up @@ -98,11 +97,7 @@ public HttpUriRequest prepare(String url, Object payload) {

if (payload != null) {
String content = new BeanToJsonConverter().convert(payload);
try {
post.setEntity(new StringEntity(content, "UTF-8"));
} catch (UnsupportedEncodingException e) {
throw Throwables.propagate(e);
}
post.setEntity(new StringEntity(content, "UTF-8"));
}
return post;
}
Expand Down
2 changes: 1 addition & 1 deletion maven/htmlunit-driver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<dependency>
<groupId>net.sourceforge.htmlunit</groupId>
<artifactId>htmlunit</artifactId>
<version>2.13</version>
<version>2.14</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
Expand Down
8 changes: 4 additions & 4 deletions maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.2</version>
<version>2.4</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.8</version>
<version>1.9</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
Expand Down Expand Up @@ -179,12 +179,12 @@
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.3.1</version>
<version>4.3.2</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.3</version>
<version>4.3.1</version>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
Expand Down
9 changes: 6 additions & 3 deletions third_party/java/apache-httpclient/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ java_library(name = "apache-httpclient",
)

prebuilt_jar(name = 'client',
binary_jar = 'httpclient-4.3.1.jar',
binary_jar = 'httpclient-4.3.2.jar',
source_jar = 'httpclient-4.3.2-sources.jar',
)

prebuilt_jar(name = 'core',
binary_jar = 'httpcore-4.3.jar',
binary_jar = 'httpcore-4.3.1.jar',
source_jar = 'httpcore-4.3.1-sources.jar',
)

prebuilt_jar(name = 'mime',
binary_jar = 'httpmime-4.3.1.jar',
binary_jar = 'httpmime-4.3.2.jar',
source_jar = 'httpmime-4.3.2-sources.jar',
)
6 changes: 3 additions & 3 deletions third_party/java/apache-httpclient/build.desc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

java_library(name = "apache-httpclient",
deps = [
"httpclient-4.3.1.jar",
"httpcore-4.3.jar",
"httpmime-4.3.1.jar",
"httpclient-4.3.2.jar",
"httpcore-4.3.1.jar",
"httpmime-4.3.2.jar",
"//third_party/java/apache-mime4j",
"//third_party/java/commons-codec",
"//third_party/java/commons-logging"
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 2 additions & 1 deletion third_party/java/commons-codec/BUCK
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
prebuilt_jar(name = 'commons-codec',
binary_jar = 'commons-codec-1.8.jar',
binary_jar = 'commons-codec-1.9.jar',
source_jar = 'commons-codec-1.9-sources.jar',
visibility = [
'//third_party/java/...',
],
Expand Down
2 changes: 1 addition & 1 deletion third_party/java/commons-codec/build.desc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
java_library(name = "commons-codec",
deps = [
"commons-codec-1.8.jar"
"commons-codec-1.9.jar"
])
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 2 additions & 1 deletion third_party/java/commons-io/BUCK
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
prebuilt_jar(name = 'commons-io',
binary_jar = 'commons-io-2.2.jar',
binary_jar = 'commons-io-2.4.jar',
source_jar = 'commons-io-2.4-sources.jar',
visibility = [
'//third_party/java/...',
],
Expand Down
2 changes: 1 addition & 1 deletion third_party/java/commons-io/build.desc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
java_library(name = "commons-io",
deps = [ "commons-io-2.2.jar" ])
deps = [ "commons-io-2.4.jar" ])
Binary file removed third_party/java/commons-io/commons-io-2.2-src.zip
Binary file not shown.
Binary file removed third_party/java/commons-io/commons-io-2.2.jar
Binary file not shown.
Binary file not shown.
Binary file added third_party/java/commons-io/commons-io-2.4.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion third_party/java/commons-lang/BUCK
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
prebuilt_jar(name = 'commons-lang',
binary_jar = 'commons-lang3-3.1.jar',
binary_jar = 'commons-lang3-3.2.1.jar',
source_jar = 'commons-lang3-3.2.1-sources.jar',
visibility = [
'//third_party/java/...',
],
Expand Down
4 changes: 2 additions & 2 deletions third_party/java/commons-lang/build.desc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
java_library(name = "commons-lang",
deps = [
"commons-lang3-3.1.jar"
])
"commons-lang3-3.2.1.jar"
])
Binary file not shown.
Binary file removed third_party/java/commons-lang/commons-lang3-3.1.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion third_party/java/commons-logging/BUCK
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
prebuilt_jar(name = 'commons-logging',
binary_jar = 'commons-logging-1.1.1.jar',
binary_jar = 'commons-logging-1.1.3.jar',
visibility = [
'//third_party/java/...',
],
Expand Down
4 changes: 2 additions & 2 deletions third_party/java/commons-logging/build.desc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
java_library(name = "commons-logging",
deps = [
"commons-logging-1.1.1.jar"
"commons-logging-1.1.3.jar"
]
)
)
Binary file not shown.
Binary file not shown.
6 changes: 3 additions & 3 deletions third_party/java/htmlunit/BUCK
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
prebuilt_jar(name = 'htmlunit',
binary_jar = 'htmlunit-2.13.jar',
source_jar = 'htmlunit-2.13-sources.jar',
binary_jar = 'htmlunit-2.14.jar',
source_jar = 'htmlunit-2.14-sources.jar',
deps = [
':js-core',
'//third_party/java/apache-httpclient:apache-httpclient',
Expand All @@ -17,7 +17,7 @@ prebuilt_jar(name = 'htmlunit',
)

prebuilt_jar(name = 'js-core',
binary_jar = 'htmlunit-core-js-2.13.jar',
binary_jar = 'htmlunit-core-js-2.14.jar',
visibility = [
'//java/client/src/org/openqa/selenium/htmlunit:htmlunit',
],
Expand Down
4 changes: 2 additions & 2 deletions third_party/java/htmlunit/build.desc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
java_library(name = "htmlunit",
deps = [
"htmlunit-2.13.jar",
"htmlunit-core-js-2.13.jar",
"htmlunit-2.14.jar",
"htmlunit-core-js-2.14.jar",
"//third_party/java/apache-httpclient",
"//third_party/java/commons-collections",
"//third_party/java/commons-io",
Expand Down
Binary file removed third_party/java/htmlunit/htmlunit-2.13-sources.jar
Binary file not shown.
Binary file removed third_party/java/htmlunit/htmlunit-2.13.jar
Binary file not shown.
Binary file not shown.
Binary file added third_party/java/htmlunit/htmlunit-2.14.jar
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 62a47fd

Please sign in to comment.