| 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 '/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 '/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 '/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 '/extensions/platform_apps/web_view/isolation/storage2.html'; |
| 14 var url5 = 'http://localhost:' + config.testServer.port + | 14 var url5 = 'http://localhost:' + config.testServer.port + |
| 15 '/files/extensions/platform_apps/web_view/isolation/storage1.html#p1'; | 15 '/extensions/platform_apps/web_view/isolation/storage1.html#p1'; |
| 16 var url6 = 'http://localhost:' + config.testServer.port + | 16 var url6 = 'http://localhost:' + config.testServer.port + |
| 17 '/files/extensions/platform_apps/web_view/isolation/storage1.html#p2'; | 17 '/extensions/platform_apps/web_view/isolation/storage1.html#p2'; |
| 18 var url7 = 'http://localhost:' + config.testServer.port + | 18 var url7 = 'http://localhost:' + config.testServer.port + |
| 19 '/files/extensions/platform_apps/web_view/isolation/storage1.html#p3'; | 19 '/extensions/platform_apps/web_view/isolation/storage1.html#p3'; |
| 20 var node = document.getElementById('web_view_container'); | 20 var node = document.getElementById('web_view_container'); |
| 21 node.innerHTML = | 21 node.innerHTML = |
| 22 "<webview id='webview' src='" + url + "'></webview>" + | 22 "<webview id='webview' src='" + url + "'></webview>" + |
| 23 "<webview id='webview2' src='" + url2 + "'></webview>" + | 23 "<webview id='webview2' src='" + url2 + "'></webview>" + |
| 24 "<webview id='webview3' partition='partition1' src='" + url3 + | 24 "<webview id='webview3' partition='partition1' src='" + url3 + |
| 25 "'></webview>" + | 25 "'></webview>" + |
| 26 "<webview id='webview4' partition='partition1' src='" + url4 + | 26 "<webview id='webview4' partition='partition1' src='" + url4 + |
| 27 "'></webview>" + | 27 "'></webview>" + |
| 28 "<webview id='webview5' partition='persist:1' src='" + url5 + | 28 "<webview id='webview5' partition='persist:1' src='" + url5 + |
| 29 "'></webview>" + | 29 "'></webview>" + |
| 30 "<webview id='webview6' partition='persist:1' src='" + url6 + | 30 "<webview id='webview6' partition='persist:1' src='" + url6 + |
| 31 "'></webview>" + | 31 "'></webview>" + |
| 32 "<webview id='webview7' partition='persist:2' src='" + url7 + | 32 "<webview id='webview7' partition='persist:2' src='" + url7 + |
| 33 "'></webview>"; | 33 "'></webview>"; |
| 34 chrome.test.sendMessage('Launched'); | 34 chrome.test.sendMessage('Launched'); |
| 35 }); | 35 }); |
| OLD | NEW |