2015-09-03 13:31:46 -04:00
|
|
|
library angular2.test.web_workers.debug_tools.bootstrap;
|
|
|
|
|
2015-11-17 18:24:36 -05:00
|
|
|
import 'package:angular2/src/platform/server/html_adapter.dart';
|
2015-10-13 03:29:13 -04:00
|
|
|
import "package:angular2/testing_internal.dart";
|
2015-09-03 13:31:46 -04:00
|
|
|
import "package:angular2/src/core/reflection/reflection_capabilities.dart";
|
|
|
|
import "package:angular2/src/core/reflection/reflection.dart";
|
|
|
|
import "package:angular2/web_worker/worker.dart";
|
|
|
|
import "package:angular2/src/web_workers/worker/application_common.dart";
|
|
|
|
import "../shared/web_worker_test_util.dart";
|
|
|
|
import "dart:convert";
|
|
|
|
|
|
|
|
main() {
|
2015-10-29 13:57:54 -04:00
|
|
|
Html5LibDomAdapter.makeCurrent();
|
|
|
|
testSetup();
|
|
|
|
|
2015-09-03 13:31:46 -04:00
|
|
|
describe("bootstrapWebWorkerCommon", () {
|
2015-10-20 12:38:14 -04:00
|
|
|
it("should bootstrap on a Dart VM", () {
|
2015-09-03 13:31:46 -04:00
|
|
|
reflector.reflectionCapabilities = new ReflectionCapabilities();
|
|
|
|
var buses = createPairedMessageBuses();
|
|
|
|
bootstrapWebWorkerCommon(App, buses.worker);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
@Component(selector: "app")
|
|
|
|
@View(template: "<p>Hello {{name}}</p>")
|
|
|
|
class App {
|
|
|
|
String name = "Tester";
|
|
|
|
}
|