| OLD | NEW |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 1 // i18n api test | 5 // i18n api test |
| 2 // browser_tests.exe --gtest_filter=ExtensionApiTest.I18N --lib=browser_tests | 6 // browser_tests.exe --gtest_filter=ExtensionApiTest.I18N --lib=browser_tests |
| 3 | 7 |
| 4 var testCallback = chrome.test.testCallback; | 8 var testCallback = chrome.test.testCallback; |
| 5 var callbackPass = chrome.test.callbackPass; | 9 var callbackPass = chrome.test.callbackPass; |
| 6 | 10 |
| 7 chrome.test.getConfig(function(config) { | 11 chrome.test.getConfig(function(config) { |
| 8 | 12 |
| 9 var TEST_FILE_URL = "http://localhost:PORT/files/extensions/test_file.html" | 13 var TEST_FILE_URL = "http://localhost:PORT/files/extensions/test_file.html" |
| 10 .replace(/PORT/, config.testServer.port); | 14 .replace(/PORT/, config.testServer.port); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 } | 41 } |
| 38 ); | 42 ); |
| 39 chrome.test.log("Creating tab..."); | 43 chrome.test.log("Creating tab..."); |
| 40 chrome.tabs.create({ | 44 chrome.tabs.create({ |
| 41 url: TEST_FILE_URL | 45 url: TEST_FILE_URL |
| 42 }); | 46 }); |
| 43 chrome.test.succeed(); | 47 chrome.test.succeed(); |
| 44 } | 48 } |
| 45 ]); | 49 ]); |
| 46 }); | 50 }); |
| OLD | NEW |