| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |