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

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

Issue 2116763002: Reland: Web MIDI: use mojom::blink::PermissionService directly to ask permission (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: system_webview_shell_layout_test workaround Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.webview_shell.test; 5 package org.chromium.webview_shell.test;
6 6
7 import android.test.ActivityInstrumentationTestCase2; 7 import android.test.ActivityInstrumentationTestCase2;
8 import android.test.suitebuilder.annotation.MediumTest; 8 import android.test.suitebuilder.annotation.MediumTest;
9 9
10 import junit.framework.ComparisonFailure; 10 import junit.framework.ComparisonFailure;
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 public void testRequestMIDIAccess() throws Exception { 205 public void testRequestMIDIAccess() throws Exception {
206 mTestActivity.setGrantPermission(true); 206 mTestActivity.setGrantPermission(true);
207 runWebViewLayoutTest("blink-apis/webmidi/requestmidiaccess.html", 207 runWebViewLayoutTest("blink-apis/webmidi/requestmidiaccess.html",
208 "blink-apis/webmidi/requestmidiaccess-expected.txt"); 208 "blink-apis/webmidi/requestmidiaccess-expected.txt");
209 mTestActivity.setGrantPermission(false); 209 mTestActivity.setGrantPermission(false);
210 } 210 }
211 211
212 @MediumTest 212 @MediumTest
213 public void testRequestMIDIAccessDenyPermission() throws Exception { 213 public void testRequestMIDIAccessDenyPermission() throws Exception {
214 runWebViewLayoutTest("blink-apis/webmidi/requestmidiaccess-permission-de nied.html", 214 runWebViewLayoutTest("blink-apis/webmidi/requestmidiaccess-permission-de nied.html",
215 "blink-apis/webmidi/requestmidiaccess-permission-denied-expected .html"); 215 "blink-apis/webmidi/requestmidiaccess-permission-denied-expected .txt");
Takashi Toyoshima 2016/07/08 07:26:53 fix an existing mistake.
216 } 216 }
217 217
218 // Blink platform API tests 218 // Blink platform API tests
219 219
220 @MediumTest 220 @MediumTest
221 public void testGeolocationCallbacks() throws Exception { 221 public void testGeolocationCallbacks() throws Exception {
222 runWebViewLayoutTest("blink-apis/geolocation/geolocation-permission-call backs.html", 222 runWebViewLayoutTest("blink-apis/geolocation/geolocation-permission-call backs.html",
223 "blink-apis/geolocation/geolocation-permission-callbacks-expecte d.txt"); 223 "blink-apis/geolocation/geolocation-permission-callbacks-expecte d.txt");
224 } 224 }
225 225
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 private boolean isInterfaceOrGlobalObject(String s) { 390 private boolean isInterfaceOrGlobalObject(String s) {
391 return s.startsWith("interface") || s.startsWith("[GLOBAL OBJECT]"); 391 return s.startsWith("interface") || s.startsWith("[GLOBAL OBJECT]");
392 } 392 }
393 393
394 private boolean isInterfaceProperty(String s) { 394 private boolean isInterfaceProperty(String s) {
395 return s.startsWith("getter") || s.startsWith("setter") 395 return s.startsWith("getter") || s.startsWith("setter")
396 || s.startsWith("method") || s.startsWith("attribute"); 396 || s.startsWith("method") || s.startsWith("attribute");
397 } 397 }
398 398
399 } 399 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698