- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / platform_apps / web_view / teardown / main.js
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 onload = function() {
6   var webview = document.createElement('webview');
7   webview.addEventListener('loadstop', function(e) {
8     chrome.test.sendMessage('guest-loaded');
9   });
10   webview.setAttribute(
11       'src', 'data:text/html,<html><body>tear down test</body></html>');
12   document.body.appendChild(webview);
13 };