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

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

Issue 299753011: Move allocate instance id to chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 6 years, 7 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 da33baca2e1bf14f59da153d7aeeb430a6a6def0..ab41060523996fc66076a9a1fc67f01ce21ea02e 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
@@ -579,7 +579,8 @@ function testCannotMutateEventName() {
// been set raises an exception.
function testPartitionRaisesException() {
var webview = document.createElement('webview');
- webview.setAttribute('partition', arguments.callee.name);
+ var partitionAttribute = arguments.callee.name;
+ webview.setAttribute('partition', partitionAttribute);
webview.setAttribute('src', 'data:text/html,trigger navigation');
document.body.appendChild(webview);
setTimeout(function() {
@@ -587,6 +588,7 @@ function testPartitionRaisesException() {
webview.partition = 'illegal';
embedder.test.fail();
} catch (e) {
+ embedder.test.assertEq(partitionAttribute, webview.partition);
embedder.test.succeed();
}
}, 0);

Powered by Google App Engine
This is Rietveld 408576698