Index: chrome/test/data/extensions/platform_apps/ad_view/load_event/chrometest.js |
diff --git a/chrome/test/data/extensions/platform_apps/ad_view/load_event/chrometest.js b/chrome/test/data/extensions/platform_apps/ad_view/load_event/chrometest.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0886f555365b8803186a065541f9686db003f350 |
--- /dev/null |
+++ b/chrome/test/data/extensions/platform_apps/ad_view/load_event/chrometest.js |
@@ -0,0 +1,15 @@ |
+// Copyright (c) 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. |
+ |
+chrome.test.getConfig(function(config) { |
+ var guestURL = 'http://localhost:' + config.testServer.port + |
+ '/files/extensions/platform_apps/ad_view/ad_network/testsdk.html'; |
+ var adview = document.getElementsByTagName("adview")[0]; |
+ |
+ adview.addEventListener("loadcommit", function() { |
+ chrome.test.sendMessage('guest-loaded'); |
+ }) |
+ |
+ adview.setAttribute("src", guestURL); |
+}); |