chore(sourcemaps): add e2e test
This commit is contained in:
9
modules/examples/src/sourcemap/index.html
Normal file
9
modules/examples/src/sourcemap/index.html
Normal 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>
|
24
modules/examples/src/sourcemap/index.js
Normal file
24
modules/examples/src/sourcemap/index.js
Normal 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();
|
||||
}
|
Reference in New Issue
Block a user