Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit ebd613b

Browse files
committed
Merge pull request #11781 from petetnt/petetnt/specrunner-fix-1
Remove references to deprecated FileSystem APIs in SpecRunner
2 parents 4518d32 + 09c2ad8 commit ebd613b

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

test/SpecRunner.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,6 @@ define(function (require, exports, module) {
7171
// extensions need these to be required up front. We need a better solution for this eventually.
7272
require("utils/ExtensionUtils");
7373

74-
// Also load compatibility shims for now, in case legacy extensions are still using old file APIs
75-
require("project/FileIndexManager");
76-
require("file/NativeFileSystem");
77-
require("file/NativeFileError");
78-
7974
// Load both top-level suites. Filtering is applied at the top-level as a filter to BootstrapReporter.
8075
require("test/UnitTestSuite");
8176
require("test/PerformanceTestSuite");

test/spec/JSUtils-test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -483,12 +483,11 @@ define(function (require, exports, module) {
483483
* Builds a fileInfos index of the project, as required to call findMatchingFunctions(). Calls the
484484
* specified 'invoker' function with fileInfos, and populates the 'functions' var once it's done.
485485
* Does not need to be wrapped in a runs() block.
486-
* @param {function(Array.<FileIndexManager.FileInfo>):$.Promise} invokeFind
486+
* @param {function(Array.<File>):$.Promise} invokeFind
487487
*/
488488
function indexAndFind(invokeFind) {
489489
runs(function () {
490490
var result = new $.Deferred();
491-
492491
ProjectManager.getAllFiles().done(function (files) {
493492
invokeFind(files)
494493
.done(function (functionsResult) { functions = functionsResult; })
@@ -503,7 +502,6 @@ define(function (require, exports, module) {
503502
describe("Index integrity", function () {
504503
it("should handle colliding with prototype properties", function () { // #2813
505504
// no init() needed - don't need any editors to be open
506-
507505
indexAndFind(function (fileInfos) {
508506
return JSUtils.findMatchingFunctions("toString", fileInfos);
509507
});

0 commit comments

Comments
 (0)