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

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

Issue 1237343002: Fix nested GuestView's container bounds calculation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: betterfix Created 5 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/shim/main.js
diff --git a/chrome/test/data/extensions/platform_apps/web_view/shim/main.js b/chrome/test/data/extensions/platform_apps/web_view/shim/main.js
index 9d43a2ba58806aff5c5c310966ccb0af1315cd95..7934855593b20a92df106f4d2e3f9515e22199d5 100644
--- a/chrome/test/data/extensions/platform_apps/web_view/shim/main.js
+++ b/chrome/test/data/extensions/platform_apps/web_view/shim/main.js
@@ -2722,6 +2722,17 @@ function testFocusWhileFocused() {
document.body.appendChild(webview);
}
+function testPDFInWebview() {
+ var webview = document.createElement('webview');
+ var pdfUrl = 'test.pdf';
+ // partition 'foobar' has access to local resource |pdfUrl|.
+ webview.partition = 'foobar';
+ webview.onloadstop = embedder.test.succeed;
+ webview.onloadabort = embedder.test.fail;
+ webview.setAttribute('src', pdfUrl);
+ document.body.appendChild(webview);
+}
+
embedder.test.testList = {
'testAllowTransparencyAttribute': testAllowTransparencyAttribute,
'testAutosizeHeight': testAutosizeHeight,
@@ -2822,7 +2833,8 @@ embedder.test.testList = {
'testPlugin': testPlugin,
'testGarbageCollect': testGarbageCollect,
'testCloseNewWindowCleanup': testCloseNewWindowCleanup,
- 'testFocusWhileFocused': testFocusWhileFocused
+ 'testFocusWhileFocused': testFocusWhileFocused,
+ 'testPDFInWebview': testPDFInWebview
};
onload = function() {

Powered by Google App Engine
This is Rietveld 408576698