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

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

Issue 975133002: Revert: Implement declarative content script API for <webview> [js part]. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 763b63d7155d859e0a699c501589697788150571..fbb4623855ec8b6c8c70fad26808dd71161f15d3 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
@@ -549,38 +549,6 @@ function testWebRequestAPIExistence() {
document.body.appendChild(webview);
}
-function testDeclarativeContentAPIExistence() {
- var apiPropertiesToCheck = [
- // Declarative Content API.
- 'onPageChanged'
- ];
- var webview = document.createElement('webview');
- webview.setAttribute('partition', arguments.callee.name);
- webview.addEventListener('loadstop', function(e) {
- for (var i = 0; i < apiPropertiesToCheck.length; ++i) {
- embedder.test.assertEq('object',
- typeof webview.request[apiPropertiesToCheck[i]]);
- embedder.test.assertEq(
- 'function',
- typeof webview.request[apiPropertiesToCheck[i]].addRules);
- embedder.test.assertEq(
- 'function',
- typeof webview.request[apiPropertiesToCheck[i]].getRules);
- embedder.test.assertEq(
- 'function',
- typeof webview.request[apiPropertiesToCheck[i]].removeRules);
- }
-
- // Try to overwrite webview.request, shall not succeed.
- webview.request = '123';
- embedder.test.assertTrue(typeof webview.request !== 'string');
-
- embedder.test.succeed();
- });
- webview.setAttribute('src', 'data:text/html,webview check api');
- document.body.appendChild(webview);
-}
-
// This test verifies that the loadstart, loadstop, and exit events fire as
// expected.
function testEventName() {
@@ -2080,7 +2048,6 @@ embedder.test.testList = {
testInlineScriptFromAccessibleResources,
'testInvalidChromeExtensionURL': testInvalidChromeExtensionURL,
'testWebRequestAPIExistence': testWebRequestAPIExistence,
- 'testDeclarativeContentAPIExistence': testDeclarativeContentAPIExistence,
'testEventName': testEventName,
'testOnEventProperties': testOnEventProperties,
'testLoadProgressEvent': testLoadProgressEvent,

Powered by Google App Engine
This is Rietveld 408576698