From 7ddfbf8beab698258f8bc48fd850931702a6e07a Mon Sep 17 00:00:00 2001 From: Tobias Bosch Date: Mon, 2 Mar 2015 14:01:02 -0800 Subject: [PATCH] refactor(tests): move files from `angular2/e2e_test` to `angular2/src/test_lib` The `e2e_test` folder in `angular2` never contained e2e tests but was used to store utilities for writing e2e/perf tests. A better place for them is `angular2/src/test_lib`. Closes #855 --- .../{e2e_test/test_util.es6 => src/test_lib/e2e_util.es6} | 0 modules/angular2/{e2e_test => src/test_lib}/perf_util.es6 | 2 +- modules/benchmarks/e2e_test/change_detection_perf.es6 | 2 +- modules/benchmarks/e2e_test/compiler_perf.es6 | 2 +- modules/benchmarks/e2e_test/di_perf.es6 | 2 +- modules/benchmarks/e2e_test/element_injector_perf.es6 | 2 +- modules/benchmarks/e2e_test/naive_infinite_scroll_perf.es6 | 2 +- modules/benchmarks/e2e_test/naive_infinite_scroll_spec.es6 | 2 +- modules/benchmarks/e2e_test/selector_perf.es6 | 2 +- modules/benchmarks/e2e_test/tree_perf.es6 | 2 +- modules/benchmarks_external/e2e_test/compiler_perf.es6 | 2 +- modules/benchmarks_external/e2e_test/largetable_perf.es6 | 2 +- .../benchmarks_external/e2e_test/naive_infinite_scroll_perf.es6 | 2 +- modules/benchmarks_external/e2e_test/tree_perf.es6 | 2 +- modules/examples/e2e_test/hello_world/hello_world_spec.es6 | 2 +- 15 files changed, 14 insertions(+), 14 deletions(-) rename modules/angular2/{e2e_test/test_util.es6 => src/test_lib/e2e_util.es6} (100%) rename modules/angular2/{e2e_test => src/test_lib}/perf_util.es6 (97%) diff --git a/modules/angular2/e2e_test/test_util.es6 b/modules/angular2/src/test_lib/e2e_util.es6 similarity index 100% rename from modules/angular2/e2e_test/test_util.es6 rename to modules/angular2/src/test_lib/e2e_util.es6 diff --git a/modules/angular2/e2e_test/perf_util.es6 b/modules/angular2/src/test_lib/perf_util.es6 similarity index 97% rename from modules/angular2/e2e_test/perf_util.es6 rename to modules/angular2/src/test_lib/perf_util.es6 index 087e2d6f20..9361642af0 100644 --- a/modules/angular2/e2e_test/perf_util.es6 +++ b/modules/angular2/src/test_lib/perf_util.es6 @@ -1,4 +1,4 @@ -var testUtil = require('./test_util'); +var testUtil = require('./e2e_util'); var benchpress = require('benchpress/benchpress'); module.exports = { diff --git a/modules/benchmarks/e2e_test/change_detection_perf.es6 b/modules/benchmarks/e2e_test/change_detection_perf.es6 index 6918a1fa53..484dda569b 100644 --- a/modules/benchmarks/e2e_test/change_detection_perf.es6 +++ b/modules/benchmarks/e2e_test/change_detection_perf.es6 @@ -1,4 +1,4 @@ -var perfUtil = require('angular2/e2e_test/perf_util'); +var perfUtil = require('angular2/src/test_lib/perf_util'); describe('ng2 change detection benchmark', function () { diff --git a/modules/benchmarks/e2e_test/compiler_perf.es6 b/modules/benchmarks/e2e_test/compiler_perf.es6 index 2b010e6a54..218e3b8c4e 100644 --- a/modules/benchmarks/e2e_test/compiler_perf.es6 +++ b/modules/benchmarks/e2e_test/compiler_perf.es6 @@ -1,4 +1,4 @@ -var perfUtil = require('angular2/e2e_test/perf_util'); +var perfUtil = require('angular2/src/test_lib/perf_util'); describe('ng2 compiler benchmark', function () { diff --git a/modules/benchmarks/e2e_test/di_perf.es6 b/modules/benchmarks/e2e_test/di_perf.es6 index 545248b877..1158de8eb2 100644 --- a/modules/benchmarks/e2e_test/di_perf.es6 +++ b/modules/benchmarks/e2e_test/di_perf.es6 @@ -1,4 +1,4 @@ -var perfUtil = require('angular2/e2e_test/perf_util'); +var perfUtil = require('angular2/src/test_lib/perf_util'); describe('ng2 di benchmark', function () { diff --git a/modules/benchmarks/e2e_test/element_injector_perf.es6 b/modules/benchmarks/e2e_test/element_injector_perf.es6 index a96b17341c..2e93597205 100644 --- a/modules/benchmarks/e2e_test/element_injector_perf.es6 +++ b/modules/benchmarks/e2e_test/element_injector_perf.es6 @@ -1,4 +1,4 @@ -var perfUtil = require('angular2/e2e_test/perf_util'); +var perfUtil = require('angular2/src/test_lib/perf_util'); describe('ng2 element injector benchmark', function () { diff --git a/modules/benchmarks/e2e_test/naive_infinite_scroll_perf.es6 b/modules/benchmarks/e2e_test/naive_infinite_scroll_perf.es6 index 9efa10b361..80d9fb4f30 100644 --- a/modules/benchmarks/e2e_test/naive_infinite_scroll_perf.es6 +++ b/modules/benchmarks/e2e_test/naive_infinite_scroll_perf.es6 @@ -1,4 +1,4 @@ -var perfUtil = require('angular2/e2e_test/perf_util'); +var perfUtil = require('angular2/src/test_lib/perf_util'); describe('ng2 naive infinite scroll benchmark', function () { diff --git a/modules/benchmarks/e2e_test/naive_infinite_scroll_spec.es6 b/modules/benchmarks/e2e_test/naive_infinite_scroll_spec.es6 index f5ca6b9e83..a15a431e06 100644 --- a/modules/benchmarks/e2e_test/naive_infinite_scroll_spec.es6 +++ b/modules/benchmarks/e2e_test/naive_infinite_scroll_spec.es6 @@ -1,4 +1,4 @@ -var testUtil = require('angular2/e2e_test/test_util'); +var testUtil = require('angular2/src/test_lib/e2e_util'); describe('ng2 naive infinite scroll benchmark', function () { diff --git a/modules/benchmarks/e2e_test/selector_perf.es6 b/modules/benchmarks/e2e_test/selector_perf.es6 index e4dec1ed8d..6238486979 100644 --- a/modules/benchmarks/e2e_test/selector_perf.es6 +++ b/modules/benchmarks/e2e_test/selector_perf.es6 @@ -1,4 +1,4 @@ -var perfUtil = require('angular2/e2e_test/perf_util'); +var perfUtil = require('angular2/src/test_lib/perf_util'); describe('ng2 selector benchmark', function () { diff --git a/modules/benchmarks/e2e_test/tree_perf.es6 b/modules/benchmarks/e2e_test/tree_perf.es6 index 0b0696be5e..f510c901bd 100644 --- a/modules/benchmarks/e2e_test/tree_perf.es6 +++ b/modules/benchmarks/e2e_test/tree_perf.es6 @@ -1,4 +1,4 @@ -var perfUtil = require('angular2/e2e_test/perf_util'); +var perfUtil = require('angular2/src/test_lib/perf_util'); describe('ng2 tree benchmark', function () { diff --git a/modules/benchmarks_external/e2e_test/compiler_perf.es6 b/modules/benchmarks_external/e2e_test/compiler_perf.es6 index 7dd3015ea6..93b83ebde8 100644 --- a/modules/benchmarks_external/e2e_test/compiler_perf.es6 +++ b/modules/benchmarks_external/e2e_test/compiler_perf.es6 @@ -1,4 +1,4 @@ -var perfUtil = require('angular2/e2e_test/perf_util'); +var perfUtil = require('angular2/src/test_lib/perf_util'); describe('ng1.x compiler benchmark', function () { diff --git a/modules/benchmarks_external/e2e_test/largetable_perf.es6 b/modules/benchmarks_external/e2e_test/largetable_perf.es6 index b1866ad4d7..971e92f5f7 100644 --- a/modules/benchmarks_external/e2e_test/largetable_perf.es6 +++ b/modules/benchmarks_external/e2e_test/largetable_perf.es6 @@ -1,4 +1,4 @@ -var perfUtil = require('angular2/e2e_test/perf_util'); +var perfUtil = require('angular2/src/test_lib/perf_util'); describe('ng1.x largetable benchmark', function () { var URL = 'benchmarks_external/src/largetable/largetable_benchmark.html'; diff --git a/modules/benchmarks_external/e2e_test/naive_infinite_scroll_perf.es6 b/modules/benchmarks_external/e2e_test/naive_infinite_scroll_perf.es6 index c182983ae2..1538f35465 100644 --- a/modules/benchmarks_external/e2e_test/naive_infinite_scroll_perf.es6 +++ b/modules/benchmarks_external/e2e_test/naive_infinite_scroll_perf.es6 @@ -1,4 +1,4 @@ -var perfUtil = require('angular2/e2e_test/perf_util'); +var perfUtil = require('angular2/src/test_lib/perf_util'); describe('ng-dart1.x naive infinite scroll benchmark', function () { diff --git a/modules/benchmarks_external/e2e_test/tree_perf.es6 b/modules/benchmarks_external/e2e_test/tree_perf.es6 index f65511d20c..153c88bec2 100644 --- a/modules/benchmarks_external/e2e_test/tree_perf.es6 +++ b/modules/benchmarks_external/e2e_test/tree_perf.es6 @@ -1,4 +1,4 @@ -var perfUtil = require('angular2/e2e_test/perf_util'); +var perfUtil = require('angular2/src/test_lib/perf_util'); describe('ng1.x tree benchmark', function () { diff --git a/modules/examples/e2e_test/hello_world/hello_world_spec.es6 b/modules/examples/e2e_test/hello_world/hello_world_spec.es6 index 811c4d7040..1bdcf97e39 100644 --- a/modules/examples/e2e_test/hello_world/hello_world_spec.es6 +++ b/modules/examples/e2e_test/hello_world/hello_world_spec.es6 @@ -1,4 +1,4 @@ -var testUtil = require('angular2/e2e_test/test_util'); +var testUtil = require('angular2/src/test_lib/e2e_util'); describe('hello world', function () { afterEach(testUtil.verifyNoBrowserErrors);