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

Unified Diff: chrome/test/data/extensions/platform_apps/ad_view/src_not_exposed/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/src_not_exposed/chrometest.js
diff --git a/chrome/test/data/extensions/platform_apps/ad_view/src_not_exposed/chrometest.js b/chrome/test/data/extensions/platform_apps/ad_view/src_not_exposed/chrometest.js
deleted file mode 100644
index f6bf10d5ce11b356f28340b12053a18819b12d61..0000000000000000000000000000000000000000
--- a/chrome/test/data/extensions/platform_apps/ad_view/src_not_exposed/chrometest.js
+++ /dev/null
@@ -1,30 +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 1) an <adview> works end-to-end (i.e. page is loaded) when
-// using a whitelisted ad-network, and 2) the "src" attribute is never exposed
-// to the application.
-
-function runTests() {
- chrome.test.runTests([
- function test() {
- var adview = document.getElementsByTagName("adview")[0];
- adview.addEventListener("loadcommit", function(e){
- chrome.test.assertEq(false, adview.hasAttribute("src"));
- chrome.test.assertEq(null, adview.getAttribute("src"));
- chrome.test.assertEq(undefined, adview['src']);
- chrome.test.assertEq(undefined, adview.src);
- console.log("Properties and attributes are inactive.");
- chrome.test.succeed();
- });
- adview.setAttribute('ad-network', 'admob');
- }
- ]);
-}
-
-window.onload = function() {
- chrome.test.getConfig(function(config) {
- runTests();
- });
-}

Powered by Google App Engine
This is Rietveld 408576698