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

Unified Diff: chrome/test/data/extensions/platform_apps/web_view/guest_focus_test/main.js

Issue 2116663002: Test for BrowserPlugin-based WebView Focus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revise surface waiting. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/platform_apps/web_view/guest_focus_test/main.js
diff --git a/chrome/test/data/extensions/platform_apps/web_view/scrollable_embedder_and_guest/main.js b/chrome/test/data/extensions/platform_apps/web_view/guest_focus_test/main.js
similarity index 86%
copy from chrome/test/data/extensions/platform_apps/web_view/scrollable_embedder_and_guest/main.js
copy to chrome/test/data/extensions/platform_apps/web_view/guest_focus_test/main.js
index 64ff8a5cfb34cf4d1b81a17da2565f894e902b58..1a733ac34d7ca74e146606958a16e0c1273f359f 100644
--- a/chrome/test/data/extensions/platform_apps/web_view/scrollable_embedder_and_guest/main.js
+++ b/chrome/test/data/extensions/platform_apps/web_view/guest_focus_test/main.js
@@ -1,4 +1,4 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
+// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -7,6 +7,11 @@ var LOG = function(msg) {
};
var startTest = function() {
+ document.getElementById('other-focusable-element').onfocus =
+ function() {
+ console.log('guest_focus_test: text input got focus.');
+ };
+
var webview = document.createElement('webview');
var onLoadStop = function(e) {
webview.contentWindow.postMessage(JSON.stringify(['connect']),'*');
@@ -35,9 +40,6 @@ window.addEventListener('message', function(e) {
case 'connected':
chrome.test.sendMessage('WebViewTest.LAUNCHED');
break;
- case 'overflow_is_hidden':
- chrome.test.sendMessage('overflow_is_hidden');
- break;
}
});

Powered by Google App Engine
This is Rietveld 408576698