aboutsummaryrefslogtreecommitdiffstats
path: root/testbench-api
diff options
context:
space:
mode:
authorAhmed Ashour <asashour@yahoo.com>2017-10-20 10:10:02 +0200
committerPéter Török <31210544+torok-peter@users.noreply.github.com>2017-10-20 11:10:02 +0300
commita9c83ba07e4dec90eb7d6e332b91adde9613ebb4 (patch)
tree7907a6c389ae740572197d949e27c6fd3c25491c /testbench-api
parent0a26d0e44169f9643e7d30ba370b8ecbbe128a56 (diff)
downloadvaadin-framework-a9c83ba07e4dec90eb7d6e332b91adde9613ebb4.tar.gz
vaadin-framework-a9c83ba07e4dec90eb7d6e332b91adde9613ebb4.zip
Use .toLowerCase and .toUpperCase(Locale.ROOT) (#10182)
* Use .toLowerCase and .toUpperCase(Locale.ROOT) * Spaces * add spaces after if(
Diffstat (limited to 'testbench-api')
-rw-r--r--testbench-api/src/main/java/com/vaadin/testbench/elements/AbstractComponentElement.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/testbench-api/src/main/java/com/vaadin/testbench/elements/AbstractComponentElement.java b/testbench-api/src/main/java/com/vaadin/testbench/elements/AbstractComponentElement.java
index a95cc58106..b91f3994d1 100644
--- a/testbench-api/src/main/java/com/vaadin/testbench/elements/AbstractComponentElement.java
+++ b/testbench-api/src/main/java/com/vaadin/testbench/elements/AbstractComponentElement.java
@@ -15,6 +15,8 @@
*/
package com.vaadin.testbench.elements;
+import java.util.Locale;
+
import org.openqa.selenium.WebElement;
import com.vaadin.testbench.By;
@@ -69,7 +71,7 @@ public class AbstractComponentElement extends AbstractElement {
String[] styles = style.split(";");
for (String stylePart : styles) {
// IE8 has uppercased styles
- String lowercasePart = stylePart.toLowerCase();
+ String lowercasePart = stylePart.toLowerCase(Locale.ROOT);
if (lowercasePart.startsWith(styleName + ":")) {
return lowercasePart.substring(styleName.length() + 1).trim();
}