OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 chrome.test.getConfig(function(config) { | 5 chrome.test.getConfig(function(config) { |
6 var url = 'http://localhost:' + config.testServer.port + | 6 var url = 'http://localhost:' + config.testServer.port + |
7 '/files/extensions/platform_apps/web_view_isolation/cookie.html'; | 7 '/files/extensions/platform_apps/web_view_isolation/cookie.html'; |
8 var url2 = 'http://localhost:' + config.testServer.port + | 8 var url2 = 'http://localhost:' + config.testServer.port + |
9 '/files/extensions/platform_apps/web_view_isolation/cookie2.html'; | 9 '/files/extensions/platform_apps/web_view_isolation/cookie2.html'; |
10 var url3 = 'http://localhost:' + config.testServer.port + | 10 var url3 = 'http://localhost:' + config.testServer.port + |
11 '/files/extensions/platform_apps/web_view_isolation/storage1.html'; | 11 '/files/extensions/platform_apps/web_view_isolation/storage1.html'; |
12 var url4 = 'http://localhost:' + config.testServer.port + | 12 var url4 = 'http://localhost:' + config.testServer.port + |
13 '/files/extensions/platform_apps/web_view_isolation/storage2.html'; | 13 '/files/extensions/platform_apps/web_view_isolation/storage2.html'; |
| 14 var url5 = 'http://localhost:' + config.testServer.port + |
| 15 '/files/extensions/platform_apps/web_view_isolation/storage1.html#p1'; |
| 16 var url6 = 'http://localhost:' + config.testServer.port + |
| 17 '/files/extensions/platform_apps/web_view_isolation/storage1.html#p2'; |
| 18 var url7 = 'http://localhost:' + config.testServer.port + |
| 19 '/files/extensions/platform_apps/web_view_isolation/storage1.html#p3'; |
14 var node = document.getElementById('web_view_container'); | 20 var node = document.getElementById('web_view_container'); |
15 node.innerHTML = | 21 node.innerHTML = |
16 "<object id='webview' src=" + url + | 22 "<object id='webview' src=" + url + |
17 " type='application/browser-plugin' width=500 height=550></object>" + | 23 " type='application/browser-plugin' width=500 height=550></object>" + |
18 "<object id='webview2' src=" + url2 + | 24 "<object id='webview2' src=" + url2 + |
19 " type='application/browser-plugin' width=500 height=550></object>" + | 25 " type='application/browser-plugin' width=500 height=550></object>" + |
20 "<object id='webview2' partition='partition1' src=" + url3 + | 26 "<object id='webview3' partition='partition1' src=" + url3 + |
21 " type='application/browser-plugin' width=500 height=550></object>" + | 27 " type='application/browser-plugin' width=500 height=550></object>" + |
22 "<object id='webview2' partition='partition1' src=" + url4 + | 28 "<object id='webview4' partition='partition1' src=" + url4 + |
| 29 " type='application/browser-plugin' width=500 height=550></object>" + |
| 30 "<object id='webview5' partition='persist:1' src=" + url5 + |
| 31 " type='application/browser-plugin' width=500 height=550></object>" + |
| 32 "<object id='webview6' partition='persist:1' src=" + url6 + |
| 33 " type='application/browser-plugin' width=500 height=550></object>" + |
| 34 "<object id='webview7' partition='persist:2' src=" + url7 + |
23 " type='application/browser-plugin' width=500 height=550></object>"; | 35 " type='application/browser-plugin' width=500 height=550></object>"; |
24 chrome.test.sendMessage('Launched'); | 36 chrome.test.sendMessage('Launched'); |
25 }); | 37 }); |
OLD | NEW |