chore(sourcemaps): add e2e test

This commit is contained in:
Yegor Jbanov
2015-02-11 14:54:59 -08:00
parent 013e1faf27
commit 234e1eccca
7 changed files with 87 additions and 5 deletions

View File

@ -0,0 +1,9 @@
<!doctype html>
<html>
<title>Sourcemaps</title>
<body>
Please look into the console and check whether the stack trace is mapped
via source maps!
$SCRIPTS$
</body>
</html>

View File

@ -0,0 +1,24 @@
import { BaseException, print, CONST } from 'angular2/src/facade/lang';
class TestAnnotation {
@CONST()
constructor() {}
}
// Use a class with an annotation,
// as this is where we expect the most source code changes
// through compilation.
@TestAnnotation()
class Test {
run() {
try {
throw new BaseException('Sourcemap test');
} catch (e) {
print(e);
}
}
}
export function main() {
new Test().run();
}