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.
5 // |baseUrl| will be equivalent to 'http://example.com:PORT';
6 var baseUrl
= location
.ancestorOrigins
[0];
8 var x
= new XMLHttpRequest();
9 x
.open('GET', baseUrl
+ '/extensions/test_file.txt?framescript');
10 x
.onloadend = function() {
12 chrome
.test
.assertEq('Hello!', x
.responseText
);
14 chrome
.test
.sendMessage('framescript_done');