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 fdc08a68871fa997184ba67d2074aaa8828a1de7..036c2169a07304d46531f147fdcbdec70bb9f96e 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); |