feat: implement web-tracing-framework support

This includes implementation and minimal instrumentation

Closes #2610
This commit is contained in:
Misko Hevery
2015-06-14 16:42:26 -07:00
parent 6d272cc5f9
commit 77875a270d
17 changed files with 357 additions and 19 deletions
@@ -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);
});
});
});
}