Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
|
not at google - send to devlin
2015/08/04 20:27:02
(c) is not needed
robwu
2015/08/04 21:57:24
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 chrome.test.getConfig(function(config) { | |
| 6 var baseUrl = 'http://example.com:' + config.testServer.port; | |
|
lazyboy
2015/08/04 15:59:26
nit: Indent 2 spaces in this CL.
not at google - send to devlin
2015/08/04 20:27:02
yep, here and the JS in the other files as well.
robwu
2015/08/04 21:57:24
Done.
| |
| 7 | |
| 8 var x = new XMLHttpRequest(); | |
| 9 x.open('GET', baseUrl + '/extensions/test_file.txt?app'); | |
| 10 x.onloadend = function() { | |
| 11 // Just a sanity check to ensure that the server is running. | |
| 12 // The test does not change the response. | |
| 13 chrome.test.assertEq('Hello!', x.responseText); | |
| 14 chrome.test.sendMessage('app_done'); | |
| 15 }; | |
| 16 x.send(); | |
| 17 }); | |
| OLD | NEW |