| Index: chrome/test/data/extensions/platform_apps/ad_view/onloadcommit_ack/chrometest.js
|
| diff --git a/chrome/test/data/extensions/platform_apps/ad_view/onloadcommit_ack/chrometest.js b/chrome/test/data/extensions/platform_apps/ad_view/onloadcommit_ack/chrometest.js
|
| deleted file mode 100644
|
| index fd7697c0b6c7a1ae553ad48b9848f0a5e305ba30..0000000000000000000000000000000000000000
|
| --- a/chrome/test/data/extensions/platform_apps/ad_view/onloadcommit_ack/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 the page loaded inside an <adview> has the ability to
|
| -// 1) receive "message" events from the application, and 2) use
|
| -// "window.postMessage" to post back a message to the application.
|
| -
|
| -function runTests(guestURL) {
|
| - chrome.test.runTests([
|
| - function test() {
|
| - var adview = document.getElementsByTagName("adview")[0];
|
| -
|
| - adview.addEventListener("loadcommit", function() {
|
| - adview.contentWindow.postMessage({
|
| - message: "onloadcommit",
|
| - data: "data"
|
| - }, "*");
|
| - });
|
| -
|
| - window.addEventListener("message", function(event) {
|
| - if (event.data.message == "onloadcommit-ack") {
|
| - console.log("onloadcommit-ack message received.");
|
| - chrome.test.succeed();
|
| - }
|
| - });
|
| -
|
| - adview.setAttribute("src", guestURL);
|
| - }
|
| - ]);
|
| -}
|
| -
|
| -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);
|
| - });
|
| -}
|
|
|