Miscellaneous changes to bring repo in sync
PiperOrigin-RevId: 311676844
Change-Id: I34fbda38aa45d4072f63c54210cd1d61ed7e5a77
diff --git a/user/test/com/google/gwt/emultest/java/lang/StringTest.java b/user/test/com/google/gwt/emultest/java/lang/StringTest.java
index 556626e..e940b92 100644
--- a/user/test/com/google/gwt/emultest/java/lang/StringTest.java
+++ b/user/test/com/google/gwt/emultest/java/lang/StringTest.java
@@ -18,7 +18,6 @@
import com.google.gwt.core.client.JavaScriptException;
import com.google.gwt.junit.client.GWTTestCase;
import com.google.gwt.testing.TestUtils;
-
import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;
import java.util.Locale;
@@ -715,9 +714,8 @@
String exampleXd = String.valueOf(new char[] {
'e', 'x', 'a', 'm', 'p', 'l', 'e', ' ', 'x', 'd'});
assertEquals("example xd", exampleXd.replace('\r', ' ').replace('\n', ' '));
- String dogFood = String.valueOf(new char[] {
- 'd', 'o', 'g', '\u0120', 'f', 'o', 'o', 'd'});
- assertEquals("dog food", dogFood.replace('\u0120', ' '));
+ String dotFood = String.valueOf(new char[] {'d', 'o', 't', '\u0120', 'f', 'o', 'o', 'd'});
+ assertEquals("dot food", dotFood.replace('\u0120', ' '));
String testStr = String.valueOf(new char[] {
'\u1111', 'B', '\u1111', 'B', '\u1111', 'B'});
assertEquals("ABABAB", testStr.replace('\u1111', 'A'));
diff --git a/user/test/com/google/gwt/emultest/java/security/MessageDigestTest.java b/user/test/com/google/gwt/emultest/java/security/MessageDigestTest.java
index d6dc044..8bf9456 100644
--- a/user/test/com/google/gwt/emultest/java/security/MessageDigestTest.java
+++ b/user/test/com/google/gwt/emultest/java/security/MessageDigestTest.java
@@ -61,7 +61,7 @@
+ "them, and theylooked down upon the broad sweep of the beach at the foot of "
+ "the greatchalk cliff in which Von Bork, like some wandering eagle, had "
+ "perchedhimself four years before. They stood with their heads close "
- + "together,talking in low, confidential tones. From below the two glowing "
+ + "together,talking in low tones. From below the two glowing "
+ "ends oftheir cigars might have been the smouldering eyes of some "
+ "malignantfiend looking down in the darkness.A remarkable man this Von Bork--a "
+ "man who could hardly be matched amongall the devoted agents of the Kaiser. "
@@ -77,7 +77,7 @@
+ "welcomeyou will receive. I happen to know what is thought in the "
+ "highestquarters of your work in this country.' He was a huge man, "
+ "thesecretary, deep, broad, and tall, with",
- "ae610cd119d74e5ac18c111d4a91ef3f",
+ "e4ab6d550fe9878dd9b2c83648e1a190",
};
private String[] sha256TestData = new String[] {
diff --git a/user/test/com/google/gwt/emultest/java/util/DateTest.java b/user/test/com/google/gwt/emultest/java/util/DateTest.java
index 6567011..e987c2c 100644
--- a/user/test/com/google/gwt/emultest/java/util/DateTest.java
+++ b/user/test/com/google/gwt/emultest/java/util/DateTest.java
@@ -17,7 +17,6 @@
import com.google.gwt.junit.client.GWTTestCase;
import com.google.gwt.testing.TestUtils;
-
import java.util.ArrayList;
import java.util.Date;
@@ -27,7 +26,8 @@
@SuppressWarnings("deprecation")
public class DateTest extends GWTTestCase {
public static final String CURRENT = "CURRENT";
- public static final String TO_STRING_PATTERN = "\\w{3} \\w{3} \\d{2} \\d{2}:\\d{2}:\\d{2}( .+)? \\d{4}";
+ public static final String TO_STRING_PATTERN =
+ "\\w{3} \\w{3} \\d{2} \\d{2}:\\d{2}:\\d{2}( .+)? \\d{4}";
public static final long DAY_MILLISECONDS_SHIFT = 27;
public static final String FUTURE = "FUTURE";
public static final String PAST = "PAST";
@@ -385,10 +385,15 @@
// /////////////////////////////
// Current
// /////////////////////////////
- Date accum0 = create();
- String arg10 = createString(CURRENT);
- long a0 = Date.parse(arg10);
- assertEquals(roundToDay(accum0.getTime()), roundToDay(a0));
+
+ // TODO(b/146498060): Reenable the roundtrip once toLocaleString is fixed for ie11.
+ if (false) {
+ Date accum0 = create();
+ String arg10 = createString(CURRENT);
+ long a0 = Date.parse(arg10);
+ assertEquals(roundToDay(accum0.getTime()), roundToDay(a0));
+ }
+
// /////////////////////////////
// Past
// /////////////////////////////