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

Side by Side Diff: chrome/test/data/extensions/platform_apps/web_view/download/embedder.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 2013 The Chromium Authors. All rights reserved. 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 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 embedder = {}; 5 var embedder = {};
6 embedder.baseGuestURL = ''; 6 embedder.baseGuestURL = '';
7 embedder.guestURL = ''; 7 embedder.guestURL = '';
8 8
9 /** @private */ 9 /** @private */
10 embedder.setUpGuest_ = function() { 10 embedder.setUpGuest_ = function() {
(...skipping 26 matching lines...) Expand all
37 chrome.test.sendMessage('guest-loaded'); 37 chrome.test.sendMessage('guest-loaded');
38 } 38 }
39 }); 39 });
40 return webview; 40 return webview;
41 }; 41 };
42 42
43 onload = function() { 43 onload = function() {
44 chrome.test.getConfig(function(config) { 44 chrome.test.getConfig(function(config) {
45 embedder.baseGuestURL = 'http://localhost:' + config.testServer.port; 45 embedder.baseGuestURL = 'http://localhost:' + config.testServer.port;
46 embedder.guestURL = embedder.baseGuestURL + 46 embedder.guestURL = embedder.baseGuestURL +
47 '/files/extensions/platform_apps/web_view/download/guest.html'; 47 '/extensions/platform_apps/web_view/download/guest.html';
48 embedder.setUpGuest_(); 48 embedder.setUpGuest_();
49 }); 49 });
50 }; 50 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698