Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chrome / test / data / extensions / api_test / webrequest_extensions / extension / background.js
blobaf5082abfb6f374426373b9b78d20458336be14f
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 chrome.test.getConfig(function(config) {
6 var baseUrl = 'http://example.com:' + config.testServer.port;
8 var x = new XMLHttpRequest();
9 x.open('GET', baseUrl + '/extensions/test_file.txt?extension');
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);
15 chrome.test.sendMessage('extension_done');
17 x.send();
18 });