Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 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 | |
| 5 // |baseUrl| will be equivalent to 'http://example.com:PORT'; | |
| 6 var baseUrl = location.ancestorOrigins[0]; | |
| 7 | |
| 8 var x = new XMLHttpRequest(); | |
| 9 x.open('GET', baseUrl + '/extensions/test_file.txt?framescript'); | |
| 10 x.onloadend = function() { | |
| 11 // Sanity check. | |
| 12 chrome.test.assertEq('Hello!', x.responseText); | |
| 13 | |
| 14 chrome.test.sendMessage('framescript_done'); | |
| 15 }; | |
| 16 x.send(); | |
|
not at google - send to devlin
2015/08/04 23:12:03
For the record, the ideal test factoring would pro
robwu
2015/08/05 16:38:08
Good to know for the future. I'll keep the current
| |
| OLD | NEW |