| Index: chrome/test/data/extensions/api_test/cross_origin_xhr/file_access/test.html
|
| ===================================================================
|
| --- chrome/test/data/extensions/api_test/cross_origin_xhr/file_access/test.html (revision 111763)
|
| +++ chrome/test/data/extensions/api_test/cross_origin_xhr/file_access/test.html (working copy)
|
| @@ -1,25 +1,6 @@
|
| -<script>
|
| -chrome.test.getConfig(function(config) {
|
| - chrome.test.runTests([
|
| - function fileAccessAllowed() {
|
| - var req = new XMLHttpRequest();
|
| -
|
| - var url = config.testDataDirectory + "/../test_file.txt";
|
| - chrome.test.log("Requesting url: " + url);
|
| - req.open("GET", url, true);
|
| -
|
| - req.onload = function() {
|
| - chrome.test.assertEq("Hello!", req.responseText);
|
| - chrome.test.runNextTest();
|
| - }
|
| - req.onerror = function() {
|
| - chrome.test.log("status: " + req.status);
|
| - chrome.test.log("text: " + req.responseText);
|
| - chrome.test.fail("Unexpected error for url: " + url);
|
| - }
|
| -
|
| - req.send(null);
|
| - }
|
| - ]);
|
| -});
|
| -</script>
|
| +<!--
|
| + * Copyright (c) 2011 The Chromium Authors. All rights reserved. Use of this
|
| + * source code is governed by a BSD-style license that can be found in the
|
| + * LICENSE file.
|
| +-->
|
| +<script src="test.js"></script>
|
|
|