Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1599)

Unified Diff: android_webview/tools/system_webview_shell/layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java

Issue 1865383002: Add EME permission test to WebViewLayoutTest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: android_webview/tools/system_webview_shell/layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java
diff --git a/android_webview/tools/system_webview_shell/layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java b/android_webview/tools/system_webview_shell/layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java
index 93b0029db2ff367d3af4c0dc98ba3a33aad55a1c..21bf7b64a661fbef948b85d146355fcd55314390 100644
--- a/android_webview/tools/system_webview_shell/layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java
+++ b/android_webview/tools/system_webview_shell/layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java
@@ -243,6 +243,14 @@ public class WebViewLayoutTest
"blink-apis/battery-status/battery-callback-expected.txt");
}
+ @MediumTest
+ public void testEMEPermission() throws Exception {
+ mTestActivity.setGrantPermission(true);
+ runWebViewLayoutTest("blink-apis/eme/eme.html", "blink-apis/eme/eme-expected.txt");
+ mTestActivity.setGrantPermission(false);
+ }
+
+
// test helper methods
private void runWebViewLayoutTest(final String fileName, final String fileNameExpected)
@@ -268,7 +276,7 @@ public class WebViewLayoutTest
Log.i(TAG, "file: " + fileNameExpected + " --> rebaselined, length=" + result.length());
} else {
String expected = readFile(fileNameExpected);
- mTestActivity.waitForFinish(TIMEOUT_SECONDS, TimeUnit.SECONDS);
+ mTestActivity.waitForFinish(100, TimeUnit.SECONDS);
timvolodine 2016/04/08 11:15:02 yes pls revert this to the constant
Yoland Yan(Google) 2016/04/11 18:15:05 Done.
String result = mTestActivity.getTestResult();
if (noFail && !expected.equals(result)) {
ComparisonFailure cf = new ComparisonFailure("Unexpected result", expected, result);

Powered by Google App Engine
This is Rietveld 408576698