Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: chrome/test/data/extensions/platform_apps/web_view/noprerenderer/main.js

Issue 16268017: GTTF: convert some tests in chrome to use EmbeddedTestServer patch nr 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 var startTest = function() { 5 var startTest = function() {
6 chrome.test.sendMessage('guest-loaded'); 6 chrome.test.sendMessage('guest-loaded');
7 }; 7 };
8 8
9 chrome.test.getConfig(function(config) { 9 chrome.test.getConfig(function(config) {
10 var guestURL = 'http://localhost:' + config.testServer.port + 10 var guestURL = 'http://localhost:' + config.testServer.port +
11 '/files/extensions/platform_apps/web_view/noprerenderer/guest.html'; 11 '/extensions/platform_apps/web_view/noprerenderer/guest.html';
12 document.querySelector('#webview-tag-container').innerHTML = 12 document.querySelector('#webview-tag-container').innerHTML =
13 '<webview style="width: 10px; height: 10px; margin: 0; padding: 0;"' + 13 '<webview style="width: 10px; height: 10px; margin: 0; padding: 0;"' +
14 ' src="' + guestURL + '"' + 14 ' src="' + guestURL + '"' +
15 '></webview>'; 15 '></webview>';
16 startTest(); 16 startTest();
17 }); 17 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698