feat: implement web-tracing-framework support
This includes implementation and minimal instrumentation Closes #2610
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
/// This file contains tests that make sense only in Dart
|
||||
library angular2.test.core.wtf_impl;
|
||||
|
||||
import 'package:angular2/test_lib.dart';
|
||||
import 'package:angular2/src/profile/wtf_impl.dart' as impl;
|
||||
|
||||
main() {
|
||||
describe('WTF', () {
|
||||
describe('getArgSize', () {
|
||||
it("should parse args", () {
|
||||
expect(impl.getArgSize('foo#bar')).toBe(0);
|
||||
expect(impl.getArgSize('foo#bar()')).toBe(0);
|
||||
expect(impl.getArgSize('foo#bar(foo bar)')).toBe(1);
|
||||
expect(impl.getArgSize('foo#bar(foo bar, baz q)')).toBe(2);
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user