parent
e38b2b502c
commit
8450e0ab2f
|
@ -28,8 +28,14 @@
|
||||||
<script>
|
<script>
|
||||||
// TODO(mlaval): remove once we have a proper solution
|
// TODO(mlaval): remove once we have a proper solution
|
||||||
ngDevMode = false;
|
ngDevMode = false;
|
||||||
|
var isBazel = location.pathname.indexOf('/all/') !== 0;
|
||||||
|
// isBazel needed while 'scripts/ci/test-e2e.sh test.e2e.protractor-e2e' is run
|
||||||
|
// on Travis
|
||||||
|
// TODO: port remaining protractor e2e tests to bazel protractor_web_test_suite rule
|
||||||
var bazelBundle = document.location.search.endsWith('debug') ? 'bundle.min_debug.js' : 'bundle.min.js';
|
var bazelBundle = document.location.search.endsWith('debug') ? 'bundle.min_debug.js' : 'bundle.min.js';
|
||||||
document.write('<script src="' + bazelBundle + '">\u003c/script>');
|
var mainUrl = window.location.search.split(/[?&]main=([^&]+)/)[1]
|
||||||
|
|| '../../bootstrap_ng2.js';
|
||||||
|
document.write('<script src="' + (isBazel ? bazelBundle : mainUrl) + '">\u003c/script>');
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -27,4 +27,10 @@ export function main() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
main();
|
const isBazel = location.pathname.indexOf('/all/') !== 0;
|
||||||
|
// isBazel needed while 'scripts/ci/test-e2e.sh test.e2e.protractor-e2e' is run
|
||||||
|
// on Travis
|
||||||
|
// TODO: port remaining protractor e2e tests to bazel protractor_web_test_suite rule
|
||||||
|
if (isBazel) {
|
||||||
|
main();
|
||||||
|
}
|
||||||
|
|
|
@ -8,6 +8,9 @@
|
||||||
|
|
||||||
// Determine if we run under bazel
|
// Determine if we run under bazel
|
||||||
const isBazel = !!process.env.RUNFILES;
|
const isBazel = !!process.env.RUNFILES;
|
||||||
|
// isBazel needed while 'scripts/ci/test-e2e.sh test.e2e.protractor-e2e' is run
|
||||||
|
// on Travis
|
||||||
|
// TODO: port remaining protractor e2e tests to bazel protractor_web_test_suite rule
|
||||||
|
|
||||||
// Make sure that the command line is read as the first thing
|
// Make sure that the command line is read as the first thing
|
||||||
// as this could exit node if the help script should be printed.
|
// as this could exit node if the help script should be printed.
|
||||||
|
|
Loading…
Reference in New Issue