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

Side by Side Diff: chrome/test/data/extensions/api_test/content_scripts/all_frames/test.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, 6 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // We load a page that has one iframe 5 // We load a page that has one iframe
6 // So we should receive two "all_frames" messages, and one "top_frame_only" 6 // So we should receive two "all_frames" messages, and one "top_frame_only"
7 // messages. 7 // messages.
8 8
9 var num_all_frames_messages = 0; 9 var num_all_frames_messages = 0;
10 var num_top_frame_only_messages = 0; 10 var num_top_frame_only_messages = 0;
(...skipping 16 matching lines...) Expand all
27 } 27 }
28 } 28 }
29 ); 29 );
30 } 30 }
31 ]); 31 ]);
32 32
33 chrome.test.getConfig(function(config) { 33 chrome.test.getConfig(function(config) {
34 chrome.test.log("Creating tab..."); 34 chrome.test.log("Creating tab...");
35 35
36 var test_url = 36 var test_url =
37 "http://localhost:PORT/files/extensions/test_file_with_iframe.html" 37 "http://localhost:PORT/extensions/test_file_with_iframe.html"
38 .replace(/PORT/, config.testServer.port); 38 .replace(/PORT/, config.testServer.port);
39 39
40 chrome.tabs.create({ url: test_url }); 40 chrome.tabs.create({ url: test_url });
41 }); 41 });
42 42
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698