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

Unified Diff: chrome/test/data/extensions/platform_apps/ad_view/permission_required/chrometest.js

Issue 147663002: Remove unused EnableAdviewSrcAttribute command line flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove still more tests Created 6 years, 11 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/ad_view/permission_required/chrometest.js
diff --git a/chrome/test/data/extensions/platform_apps/ad_view/permission_required/chrometest.js b/chrome/test/data/extensions/platform_apps/ad_view/permission_required/chrometest.js
deleted file mode 100644
index ca87e67fcbb480c73c4df7d892c5d57461894a7c..0000000000000000000000000000000000000000
--- a/chrome/test/data/extensions/platform_apps/ad_view/permission_required/chrometest.js
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2013 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.
-
-// This test checks an <adview> element has no behavior when the "adview"
-// permission is missing from the application manifest.
-
-function runTests(guestURL) {
- chrome.test.runTests([
- function test() {
- var adview = document.getElementsByTagName('adview')[0];
- var adnetwork = adview.getAttribute('ad-network');
-
- adview.setAttribute('src', guestURL);
-
- // Timeout is necessary to give the mutation observers a chance to fire.
- // http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/1622.html
- setTimeout(function() {
- chrome.test.assertEq(true, adview.hasAttribute('src'));
- chrome.test.assertEq(guestURL, adview.getAttribute('src'));
- chrome.test.assertEq(undefined, adview['src']);
-
- chrome.test.assertEq(adnetwork, adview.getAttribute('ad-network'));
- chrome.test.assertEq(undefined, adview['ad-network']);
-
- console.log("Properties and attributes are inactive.");
- chrome.test.succeed();
- }, 0);
- }
- ]);
-}
-
-window.onload = function() {
- chrome.test.getConfig(function(config) {
- var guestURL = 'http://localhost:' + config.testServer.port +
- '/extensions/platform_apps/ad_view/ad_network_site/testsdk.html';
- runTests(guestURL);
- });
-}

Powered by Google App Engine
This is Rietveld 408576698