File tree 3 files changed +17
-2
lines changed
modules/benchmarks/src/largetable/render3
3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,14 @@ <h2>Render3 Largetable Benchmark</h2>
28
28
< script >
29
29
// TODO(mlaval): remove once we have a proper solution
30
30
ngDevMode = false ;
31
+ var isBazel = location . pathname . indexOf ( '/all/' ) !== 0 ;
32
+ // isBazel needed while 'scripts/ci/test-e2e.sh test.e2e.protractor-e2e' is run
33
+ // on Travis
34
+ // TODO: port remaining protractor e2e tests to bazel protractor_web_test_suite rule
31
35
var bazelBundle = document . location . search . endsWith ( 'debug' ) ? 'bundle.min_debug.js' : 'bundle.min.js' ;
32
- document . write ( '<script src="' + bazelBundle + '">\u003c/script>' ) ;
36
+ var mainUrl = window . location . search . split ( / [ ? & ] m a i n = ( [ ^ & ] + ) / ) [ 1 ]
37
+ || '../../bootstrap_ng2.js' ;
38
+ document . write ( '<script src="' + ( isBazel ? bazelBundle : mainUrl ) + '">\u003c/script>' ) ;
33
39
</ script >
34
40
</ body >
35
41
Original file line number Diff line number Diff line change @@ -27,4 +27,10 @@ export function main() {
27
27
}
28
28
}
29
29
30
- main ( ) ;
30
+ const isBazel = location . pathname . indexOf ( '/all/' ) !== 0 ;
31
+ // isBazel needed while 'scripts/ci/test-e2e.sh test.e2e.protractor-e2e' is run
32
+ // on Travis
33
+ // TODO: port remaining protractor e2e tests to bazel protractor_web_test_suite rule
34
+ if ( isBazel ) {
35
+ main ( ) ;
36
+ }
Original file line number Diff line number Diff line change 8
8
9
9
// Determine if we run under bazel
10
10
const isBazel = ! ! process . env . RUNFILES ;
11
+ // isBazel needed while 'scripts/ci/test-e2e.sh test.e2e.protractor-e2e' is run
12
+ // on Travis
13
+ // TODO: port remaining protractor e2e tests to bazel protractor_web_test_suite rule
11
14
12
15
// Make sure that the command line is read as the first thing
13
16
// as this could exit node if the help script should be printed.
You can’t perform that action at this time.
0 commit comments