From e3655e97960811c593ef789ad1013db3443c8144 Mon Sep 17 00:00:00 2001 From: Jason San Jose Date: Fri, 13 Jul 2012 14:27:30 -0700 Subject: [PATCH] fix module loading for SpecRunnerUtils --- test/spec/CSSUtils-test.js | 2 +- test/spec/CodeHintUtils-test.js | 2 +- test/spec/Document-test.js | 2 +- test/spec/DocumentCommandHandlers-test.js | 2 +- test/spec/Editor-test.js | 2 +- test/spec/EditorCommandHandlers-test.js | 2 +- test/spec/ExtensionUtils-test.js | 2 +- test/spec/FileIndexManager-test.js | 2 +- test/spec/InlineEditorProviders-test.js | 2 +- test/spec/LiveDevelopment-test.js | 2 +- test/spec/LowLevelFileIO-test.js | 2 +- test/spec/Menu-test.js | 2 +- test/spec/PreferencesManager-test.js | 2 +- test/spec/ProjectManager-test.js | 2 +- test/spec/WorkingSetView-test.js | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/test/spec/CSSUtils-test.js b/test/spec/CSSUtils-test.js index d68db288f..d45292d21 100644 --- a/test/spec/CSSUtils-test.js +++ b/test/spec/CSSUtils-test.js @@ -31,7 +31,7 @@ define(function (require, exports, module) { Async = require("utils/Async"), FileUtils = require("file/FileUtils"), CSSUtils = require("language/CSSUtils"), - SpecRunnerUtils = require("./SpecRunnerUtils.js"); + SpecRunnerUtils = require("spec/SpecRunnerUtils"); var testPath = SpecRunnerUtils.getTestPath("/spec/CSSUtils-test-files"), simpleCssFileEntry = new NativeFileSystem.FileEntry(testPath + "/simple.css"), diff --git a/test/spec/CodeHintUtils-test.js b/test/spec/CodeHintUtils-test.js index e0bb65ac0..cf1e132b8 100644 --- a/test/spec/CodeHintUtils-test.js +++ b/test/spec/CodeHintUtils-test.js @@ -30,7 +30,7 @@ define(function (require, exports, module) { // Load dependent modules var HTMLUtils = require("language/HTMLUtils"), - SpecRunnerUtils = require("./SpecRunnerUtils.js"), + SpecRunnerUtils = require("spec/SpecRunnerUtils"), Editor = require("editor/Editor").Editor; //Use a clean version of the editor each time diff --git a/test/spec/Document-test.js b/test/spec/Document-test.js index d324989d2..acd44deae 100644 --- a/test/spec/Document-test.js +++ b/test/spec/Document-test.js @@ -33,7 +33,7 @@ define(function (require, exports, module) { Commands, // loaded from brackets.test EditorManager, // loaded from brackets.test DocumentManager, // loaded from brackets.test - SpecRunnerUtils = require("./SpecRunnerUtils.js"); + SpecRunnerUtils = require("spec/SpecRunnerUtils"); describe("Document", function () { diff --git a/test/spec/DocumentCommandHandlers-test.js b/test/spec/DocumentCommandHandlers-test.js index 777a9863f..c679e30c4 100644 --- a/test/spec/DocumentCommandHandlers-test.js +++ b/test/spec/DocumentCommandHandlers-test.js @@ -33,7 +33,7 @@ define(function (require, exports, module) { Commands, // loaded from brackets.test DocumentCommandHandlers, // loaded from brackets.test DocumentManager, // loaded from brackets.test - SpecRunnerUtils = require("./SpecRunnerUtils.js"), + SpecRunnerUtils = require("spec/SpecRunnerUtils"), NativeFileSystem = require("file/NativeFileSystem").NativeFileSystem, FileUtils = require("file/FileUtils"); diff --git a/test/spec/Editor-test.js b/test/spec/Editor-test.js index 76fc63c99..21045a505 100644 --- a/test/spec/Editor-test.js +++ b/test/spec/Editor-test.js @@ -29,7 +29,7 @@ define(function (require, exports, module) { 'use strict'; var Editor = require("editor/Editor").Editor, - SpecRunnerUtils = require("./SpecRunnerUtils.js"), + SpecRunnerUtils = require("spec/SpecRunnerUtils"), EditorUtils = require("editor/EditorUtils"); describe("Editor", function () { diff --git a/test/spec/EditorCommandHandlers-test.js b/test/spec/EditorCommandHandlers-test.js index 36a94901a..f0c51307c 100644 --- a/test/spec/EditorCommandHandlers-test.js +++ b/test/spec/EditorCommandHandlers-test.js @@ -31,7 +31,7 @@ define(function (require, exports, module) { EditorCommandHandlers = require("editor/EditorCommandHandlers"), Commands = require("command/Commands"), CommandManager = require("command/CommandManager"), - SpecRunnerUtils = require("./SpecRunnerUtils.js"), + SpecRunnerUtils = require("spec/SpecRunnerUtils"), EditorUtils = require("editor/EditorUtils"); describe("EditorCommandHandlers", function () { diff --git a/test/spec/ExtensionUtils-test.js b/test/spec/ExtensionUtils-test.js index 6247dbcf2..b68dc53b8 100644 --- a/test/spec/ExtensionUtils-test.js +++ b/test/spec/ExtensionUtils-test.js @@ -28,7 +28,7 @@ define(function (require, exports, module) { 'use strict'; var ExtensionUtils, - SpecRunnerUtils = require("./SpecRunnerUtils.js"); + SpecRunnerUtils = require("spec/SpecRunnerUtils"); describe("Extension Utils", function () { diff --git a/test/spec/FileIndexManager-test.js b/test/spec/FileIndexManager-test.js index 89ba9c23a..45e4192c1 100644 --- a/test/spec/FileIndexManager-test.js +++ b/test/spec/FileIndexManager-test.js @@ -31,7 +31,7 @@ define(function (require, exports, module) { // Load dependent modules var FileIndexManager, ProjectManager, - SpecRunnerUtils = require("./SpecRunnerUtils.js"); + SpecRunnerUtils = require("spec/SpecRunnerUtils"); describe("FileIndexManager", function () { diff --git a/test/spec/InlineEditorProviders-test.js b/test/spec/InlineEditorProviders-test.js index 5b1ca9587..7146a5960 100644 --- a/test/spec/InlineEditorProviders-test.js +++ b/test/spec/InlineEditorProviders-test.js @@ -37,7 +37,7 @@ define(function (require, exports, module) { Dialogs = require("widgets/Dialogs"), NativeFileSystem = require("file/NativeFileSystem").NativeFileSystem, FileUtils = require("file/FileUtils"), - SpecRunnerUtils = require("./SpecRunnerUtils.js"); + SpecRunnerUtils = require("spec/SpecRunnerUtils"); describe("InlineEditorProviders", function () { diff --git a/test/spec/LiveDevelopment-test.js b/test/spec/LiveDevelopment-test.js index 24f17c02d..ddb3b8a9d 100644 --- a/test/spec/LiveDevelopment-test.js +++ b/test/spec/LiveDevelopment-test.js @@ -27,7 +27,7 @@ define(function (require, exports, module) { 'use strict'; - var SpecRunnerUtils = require("./SpecRunnerUtils.js"), + var SpecRunnerUtils = require("spec/SpecRunnerUtils"), NativeApp, //The following are all loaded from the test window LiveDevelopment, Inspector, diff --git a/test/spec/LowLevelFileIO-test.js b/test/spec/LowLevelFileIO-test.js index 7031f8ef7..5d12382a2 100644 --- a/test/spec/LowLevelFileIO-test.js +++ b/test/spec/LowLevelFileIO-test.js @@ -29,7 +29,7 @@ define(function (require, exports, module) { 'use strict'; // Load dependent modules - var SpecRunnerUtils = require("./SpecRunnerUtils.js"); + var SpecRunnerUtils = require("spec/SpecRunnerUtils"); var _FSEncodings = require("file/NativeFileSystem").NativeFileSystem._FSEncodings; // These are tests for the low-level file io routines in brackets-app. Make sure diff --git a/test/spec/Menu-test.js b/test/spec/Menu-test.js index 9a4a35bc8..577d18e88 100644 --- a/test/spec/Menu-test.js +++ b/test/spec/Menu-test.js @@ -31,7 +31,7 @@ define(function (require, exports, module) { Commands, KeyBindingManager, Menus, - SpecRunnerUtils = require("./SpecRunnerUtils.js"), + SpecRunnerUtils = require("spec/SpecRunnerUtils"), StringsUtils = require("utils/StringUtils"), Strings = require("strings"); diff --git a/test/spec/PreferencesManager-test.js b/test/spec/PreferencesManager-test.js index 7d6ecda43..4fdb380de 100644 --- a/test/spec/PreferencesManager-test.js +++ b/test/spec/PreferencesManager-test.js @@ -29,7 +29,7 @@ define(function (require, exports, module) { // Load dependent modules var PreferencesManager = require("preferences/PreferencesManager"), PreferenceStorage = require("preferences/PreferenceStorage").PreferenceStorage, - SpecRunnerUtils = require("./SpecRunnerUtils.js"); + SpecRunnerUtils = require("spec/SpecRunnerUtils"); var CLIENT_ID = "PreferencesManager-test"; diff --git a/test/spec/ProjectManager-test.js b/test/spec/ProjectManager-test.js index 67d4a5581..037bba70a 100644 --- a/test/spec/ProjectManager-test.js +++ b/test/spec/ProjectManager-test.js @@ -29,7 +29,7 @@ define(function (require, exports, module) { // Load dependent modules var ProjectManager, // Load from brackets.test - SpecRunnerUtils = require("./SpecRunnerUtils.js"); + SpecRunnerUtils = require("spec/SpecRunnerUtils"); describe("ProjectManager", function () { diff --git a/test/spec/WorkingSetView-test.js b/test/spec/WorkingSetView-test.js index 8f6acd45e..411558558 100644 --- a/test/spec/WorkingSetView-test.js +++ b/test/spec/WorkingSetView-test.js @@ -33,7 +33,7 @@ define(function (require, exports, module) { Commands, DocumentManager, FileViewController, - SpecRunnerUtils = require("./SpecRunnerUtils.js"); + SpecRunnerUtils = require("spec/SpecRunnerUtils"); describe("WorkingSetView", function () {