chore: remove obsolete files (#10240)
This commit is contained in:
@ -1,3 +0,0 @@
|
||||
library playground.e2e_test.async_spec;
|
||||
|
||||
main() {}
|
@ -1,3 +0,0 @@
|
||||
library playground.e2e_test.hash_location_spec;
|
||||
|
||||
main() {}
|
@ -1,3 +0,0 @@
|
||||
library playground.e2e_test.hello_world.hello_world_spec;
|
||||
|
||||
main() {}
|
@ -1,3 +0,0 @@
|
||||
library playground.e2e_test.http.http_spec;
|
||||
|
||||
main() {}
|
@ -1,3 +0,0 @@
|
||||
library playground.e2e_test.jsonp.jsonp_spec;
|
||||
|
||||
main() {}
|
@ -1,3 +0,0 @@
|
||||
library playground.e2e_test.key_events.key_events_spec;
|
||||
|
||||
main() {}
|
@ -1,3 +0,0 @@
|
||||
library playground.e2e_test.hello_world.model_driven_forms_spec;
|
||||
|
||||
main() {}
|
@ -1,3 +0,0 @@
|
||||
library playground.e2e_test.order_management_spec;
|
||||
|
||||
main() {}
|
@ -1,3 +0,0 @@
|
||||
library playground.e2e_test.person_management_spec;
|
||||
|
||||
main() {}
|
@ -1,3 +0,0 @@
|
||||
library playground.e2e_test.relative_assets.assets_spec;
|
||||
|
||||
main() {}
|
@ -1,3 +0,0 @@
|
||||
library playground.e2e_test.routing.routing_spec;
|
||||
|
||||
main() {}
|
@ -1,3 +0,0 @@
|
||||
library playground.e2e_test.routing.routing_spec;
|
||||
|
||||
main() {}
|
@ -1,3 +0,0 @@
|
||||
library playground.e2e_test.sourcemap.sourcemap_spec;
|
||||
|
||||
main() {}
|
@ -1,3 +0,0 @@
|
||||
library playground.e2e_test.svg.svg_spec;
|
||||
|
||||
main() {}
|
@ -1,3 +0,0 @@
|
||||
library playground.e2e_test.hello_world.template_driven_forms_spec;
|
||||
|
||||
main() {}
|
@ -1,3 +0,0 @@
|
||||
library playground.e2e_test.web_workers.input_spec;
|
||||
|
||||
main() {}
|
@ -1,3 +0,0 @@
|
||||
library playground.e2e_test.web_workers.kitchen_sink_spec;
|
||||
|
||||
main() {}
|
@ -1,3 +0,0 @@
|
||||
library playground.e2e_test.message_bus;
|
||||
|
||||
main() {}
|
@ -1,3 +0,0 @@
|
||||
library playground.e2e_test.web_workers.router.router_spec;
|
||||
|
||||
main() {}
|
@ -1,3 +0,0 @@
|
||||
library playground.e2e_test.web_workers.todo_spec;
|
||||
|
||||
main() {}
|
@ -1,3 +0,0 @@
|
||||
library playground.e2e_test.zippy_component.zippy_spec;
|
||||
|
||||
main() {}
|
@ -1,81 +0,0 @@
|
||||
name: playground
|
||||
environment:
|
||||
sdk: '>=1.10.0 <2.0.0'
|
||||
dependencies:
|
||||
observe: '^0.13.1'
|
||||
angular2: '^<%= packageJson.version %>'
|
||||
browser: '^0.10.0'
|
||||
dev_dependencies:
|
||||
guinness2: '0.0.5'
|
||||
benchpress:
|
||||
path: ../benchpress
|
||||
dependency_overrides:
|
||||
angular2:
|
||||
path: ../angular2
|
||||
matcher: '0.12.0+1'
|
||||
transformers:
|
||||
- angular2/transform/codegen:
|
||||
platform_directives: 'package:angular2/src/common/directives.dart#CORE_DIRECTIVES'
|
||||
- angular2/transform/reflection_remover:
|
||||
$include:
|
||||
- web/src/animate/index.dart
|
||||
- web/src/async/index.dart
|
||||
- web/src/gestures/index.dart
|
||||
- web/src/hash_routing/index.dart
|
||||
- web/src/hello_world/index.dart
|
||||
- web/src/key_events/index.dart
|
||||
- web/src/model_driven_forms/index.dart
|
||||
- web/src/observable_models/index.dart
|
||||
- web/src/order_management/index.dart
|
||||
- web/src/person_management/index.dart
|
||||
- web/src/relative_assets/index.dart
|
||||
- web/src/routing/index.dart
|
||||
- web/src/sourcemap/index.dart
|
||||
- web/src/svg/index.dart
|
||||
- web/src/template_driven_forms/index.dart
|
||||
- web/src/todo/index.dart
|
||||
- web/src/web_workers/kitchen_sink/background_index.dart
|
||||
- web/src/web_workers/kitchen_sink/index.dart
|
||||
- web/src/web_workers/message_broker/background_index.dart
|
||||
- web/src/web_workers/message_broker/index.dart
|
||||
- web/src/web_workers/todo/background_index.dart
|
||||
- web/src/web_workers/todo/index.dart
|
||||
- web/src/web_workers/todo/server_index.dart
|
||||
- web/src/web_workers/router/index.dart
|
||||
- web/src/web_workers/router/background_index.dart
|
||||
- web/src/web_workers/input/index.dart
|
||||
- web/src/web_workers/input/background_index.dart
|
||||
- web/src/zippy_component/index.dart
|
||||
- angular2/transform/deferred_rewriter:
|
||||
# No playground apps use deferred imports, but in general
|
||||
# all libraries with deferred imports should be included.
|
||||
$include: []
|
||||
|
||||
- $dart2js:
|
||||
$include:
|
||||
- web/src/**
|
||||
$exclude:
|
||||
# web worker code compiled separately; see below
|
||||
- web/src/web_workers/**
|
||||
minify: false
|
||||
commandLineOptions:
|
||||
- --show-package-warnings
|
||||
- --trust-type-annotations
|
||||
- --trust-primitives
|
||||
- --enable-experimental-mirrors
|
||||
- --fatal-warnings
|
||||
|
||||
# TODO(yjbanov): cannot use --fatal-warnings on web-worker code due to
|
||||
# dart2js bug https://github.com/dart-lang/sdk/issues/23875
|
||||
- $dart2js:
|
||||
$include:
|
||||
- web/src/web_workers/**
|
||||
$exclude:
|
||||
- web/src/web_workers/images/**
|
||||
- web/src/web_workers/todo/server_index.dart
|
||||
minify: false
|
||||
commandLineOptions:
|
||||
- --show-package-warnings
|
||||
- --trust-type-annotations
|
||||
- --trust-primitives
|
||||
- --enable-experimental-mirrors
|
@ -1,9 +0,0 @@
|
||||
import 'package:angular2/core.dart' show Component;
|
||||
|
||||
@Component(
|
||||
selector: 'my-cmp',
|
||||
templateUrl: 'tpl.html',
|
||||
styleUrls: const ['style.css']
|
||||
)
|
||||
class MyCmp {
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
library angualr2.playground.upgrade.index;
|
||||
|
||||
main() {
|
||||
// do nothing
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
library playground.src.web_workers.images.background_index;
|
||||
|
||||
import "index_common.dart" show ImageDemo;
|
||||
import "dart:isolate";
|
||||
import "package:angular2/platform/worker_app.dart";
|
||||
import "package:angular2/core.dart";
|
||||
import "package:angular2/src/core/reflection/reflection_capabilities.dart";
|
||||
import "package:angular2/src/core/reflection/reflection.dart";
|
||||
|
||||
main(List<String> args, SendPort replyTo) {
|
||||
reflector.reflectionCapabilities = new ReflectionCapabilities();
|
||||
bootstrapApp(replyTo, ImageDemo);
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
export 'dart:html' show FileReader;
|
||||
|
||||
import 'dart:typed_data';
|
||||
|
||||
class Uint8ArrayWrapper {
|
||||
static Uint8ClampedList create(ByteBuffer buffer) {
|
||||
return new Uint8ClampedList.view(buffer);
|
||||
}
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
library angular2.examples.web_workers.images.index;
|
||||
|
||||
import "package:angular2/platform/worker_render.dart";
|
||||
import "package:angular2/core.dart";
|
||||
import "package:angular2/src/core/reflection/reflection_capabilities.dart";
|
||||
import "package:angular2/src/core/reflection/reflection.dart";
|
||||
|
||||
main() {
|
||||
reflector.reflectionCapabilities = new ReflectionCapabilities();
|
||||
bootstrapRender("background_index.dart");
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
library angular2.examples.web_workers.images.bitmap_service;
|
||||
|
||||
import 'dart:html';
|
||||
import 'dart:typed_data';
|
||||
|
||||
// TODO(jteplitz602) Implement this class #3493
|
||||
class BitmapService {
|
||||
ImageData applySepia(ImageData imageData) {
|
||||
return null;
|
||||
}
|
||||
|
||||
String arrayBufferToDataUri(Uint8ClampedList data) {
|
||||
return null;
|
||||
}
|
||||
|
||||
ImageData convertToImageData(ByteBuffer buffer) {
|
||||
return null;
|
||||
}
|
||||
|
||||
String toDataUri(ImageData imageData) {
|
||||
return null;
|
||||
}
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
library playground.src.web_workers.input.background_index;
|
||||
|
||||
import "index_common.dart" show InputCmp;
|
||||
import "dart:isolate";
|
||||
import "package:angular2/platform/worker_app.dart";
|
||||
import "package:angular2/core.dart";
|
||||
|
||||
@AngularEntrypoint()
|
||||
main(List<String> args, SendPort replyTo) {
|
||||
bootstrapApp(replyTo, InputCmp);
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
library angular2.examples.web_workers.input.index;
|
||||
|
||||
import "package:angular2/platform/worker_render.dart";
|
||||
import "package:angular2/core.dart";
|
||||
|
||||
@AngularEntrypoint()
|
||||
main() {
|
||||
bootstrapRender("background_index.dart");
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
library playground.src.web_workers.kitchen_sink.background_index;
|
||||
|
||||
import "index_common.dart" show HelloCmp;
|
||||
import "dart:isolate";
|
||||
import "package:angular2/platform/worker_app.dart";
|
||||
import "package:angular2/core.dart";
|
||||
|
||||
@AngularEntrypoint()
|
||||
main(List<String> args, SendPort replyTo) {
|
||||
bootstrapApp(replyTo, HelloCmp);
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
library angular2.examples.web_workers.kitchen_sink.index;
|
||||
|
||||
import "package:angular2/platform/worker_render.dart";
|
||||
import "package:angular2/core.dart";
|
||||
|
||||
@AngularEntrypoint()
|
||||
main() {
|
||||
bootstrapRender("background_index.dart");
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
library angular2.examples.message_broker.background_index;
|
||||
|
||||
import "package:angular2/platform/worker_app.dart";
|
||||
import "package:angular2/core.dart";
|
||||
import "index_common.dart" show App;
|
||||
import "dart:isolate";
|
||||
|
||||
@AngularEntrypoint()
|
||||
main(List<String> args, SendPort replyTo) {
|
||||
bootstrapApp(replyTo, App);
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
library angular2.examples.message_broker.index;
|
||||
|
||||
import "package:angular2/platform/worker_render.dart";
|
||||
import "package:angular2/core.dart";
|
||||
import "dart:html";
|
||||
|
||||
@AngularEntrypoint()
|
||||
main() {
|
||||
const ECHO_CHANNEL = "ECHO";
|
||||
bootstrapRender("background_index.dart")
|
||||
.then((ref) {
|
||||
var brokerFactory = ref.injector.get(ClientMessageBrokerFactory);
|
||||
var broker = brokerFactory.createMessageBroker(ECHO_CHANNEL, false);
|
||||
querySelector("#send_echo").addEventListener("click", (e) {
|
||||
var val = (querySelector("#echo_input") as InputElement).value;
|
||||
var args = new UiArguments("echo", [new FnArg(val, PRIMITIVE)]);
|
||||
broker.runOnService(args, PRIMITIVE).then((echo_result) {
|
||||
querySelector("#echo_result")
|
||||
.appendHtml("<span class='response'>${echo_result}</span>");
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
library playground.src.web_workers.router.background_index;
|
||||
|
||||
import "index_common.dart" show App;
|
||||
import "dart:isolate";
|
||||
import "package:angular2/platform/worker_app.dart";
|
||||
import "package:angular2/core.dart";
|
||||
import "package:angular2/platform/common.dart" show LocationStrategy, HashLocationStrategy;
|
||||
import "package:angular2/src/web_workers/worker/router_providers.dart";
|
||||
|
||||
@AngularEntrypoint()
|
||||
main(List<String> args, SendPort replyTo) {
|
||||
bootstrapApp(replyTo, App, [WORKER_APP_ROUTER, new Provider(LocationStrategy, useClass: HashLocationStrategy)]);
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
library angular2.examples.web_workers.router.index;
|
||||
|
||||
import "package:angular2/platform/worker_render.dart";
|
||||
import "package:angular2/core.dart";
|
||||
import "package:angular2/src/core/reflection/reflection_capabilities.dart";
|
||||
import "package:angular2/src/core/reflection/reflection.dart";
|
||||
|
||||
@AngularEntrypoint()
|
||||
main() {
|
||||
reflector.reflectionCapabilities = new ReflectionCapabilities();
|
||||
bootstrapRender("background_index.dart", WORKER_RENDER_ROUTER);
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
library playground.src.web_workers.todo.background_index;
|
||||
|
||||
import "index_common.dart" show TodoApp;
|
||||
import "dart:isolate";
|
||||
import "package:angular2/platform/worker_app.dart";
|
||||
import "package:angular2/core.dart";
|
||||
|
||||
@AngularEntrypoint()
|
||||
main(List<String> args, SendPort replyTo) {
|
||||
bootstrapApp(replyTo, TodoApp);
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
library angular2.examples.web_workers.todo.index;
|
||||
|
||||
import "package:angular2/platform/worker_render.dart";
|
||||
import "package:angular2/core.dart";
|
||||
|
||||
@AngularEntrypoint()
|
||||
main() {
|
||||
bootstrapRender("background_index.dart");
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
library angular2.examples.web_workers.todo.index_web_socket;
|
||||
|
||||
import "package:angular2/core.dart";
|
||||
import "package:angular2/platform/worker_render.dart";
|
||||
import "package:angular2/src/web_workers/debug_tools/web_socket_message_bus.dart";
|
||||
import 'dart:html' show WebSocket;
|
||||
|
||||
@AngularEntrypoint()
|
||||
main() {
|
||||
var webSocket = new WebSocket("ws://127.0.0.1:1337/ws");
|
||||
webSocket.onOpen.listen((e) {
|
||||
var bus = new WebSocketMessageBus.fromWebSocket(webSocket);
|
||||
var platform = createPlatform(ReflectiveInjector.resolveAndCreate(WORKER_RENDER_PLATFORM));
|
||||
var appInjector = ReflectiveInjector.resolveAndCreate([
|
||||
WORKER_RENDER_APPLICATION_COMMON, new Provider(MessageBus, useValue: bus),
|
||||
new Provider(APP_INITIALIZER,
|
||||
useFactory: (injector) => () => initializeGenericWorkerRenderer(injector),
|
||||
deps: [Injector],
|
||||
multi: true
|
||||
)
|
||||
], platform.injector);
|
||||
appInjector.get(ApplicationRef);
|
||||
});
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
library angular2.examples.web_workers.todo.server_index;
|
||||
|
||||
import "index_common.dart" show TodoApp;
|
||||
import "package:angular2/src/web_workers/debug_tools/multi_client_server_message_bus.dart";
|
||||
import "package:angular2/platform/worker_app.dart";
|
||||
import "package:angular2/core.dart";
|
||||
import 'dart:io';
|
||||
import "package:angular2/src/core/reflection/reflection_capabilities.dart";
|
||||
import "package:angular2/src/core/reflection/reflection.dart";
|
||||
import "package:angular2/src/platform/server/html_adapter.dart";
|
||||
|
||||
void main() {
|
||||
reflector.reflectionCapabilities = new ReflectionCapabilities();
|
||||
HttpServer.bind('127.0.0.1', 1337).then((HttpServer server) {
|
||||
print("Server Listening for requests on 127.0.0.1:1337");
|
||||
var bus = new MultiClientServerMessageBus.fromHttpServer(server);
|
||||
|
||||
var platform = createPlatform(ReflectiveInjector.resolveAndCreate(WORKER_APP_PLATFORM));
|
||||
var appInjector = ReflectiveInjector.resolveAndCreate([
|
||||
WORKER_APP_APPLICATION_COMMON,
|
||||
new Provider(MessageBus, useValue: bus),
|
||||
new Provider(APP_INITIALIZER,
|
||||
useFactory: initAppThread, multi: true, deps: [NgZone, MessageBus])
|
||||
], platform.injector);
|
||||
coreLoadAndBootstrap(TodoApp, appInjector);
|
||||
});
|
||||
}
|
||||
|
||||
initAppThread(NgZone zone, MessageBus bus) {
|
||||
return () {
|
||||
Html5LibDomAdapter.makeCurrent();
|
||||
bus.attachToZone(zone);
|
||||
};
|
||||
}
|
@ -1,56 +0,0 @@
|
||||
import 'dart:async';
|
||||
import 'dart:io' show Platform;
|
||||
import 'package:guinness2/guinness2.dart';
|
||||
import 'package:benchpress/benchpress.dart';
|
||||
import 'package:webdriver/webdriver.dart'
|
||||
show WebDriver, Capabilities, LogType, LogLevel, By;
|
||||
|
||||
main() {
|
||||
describe('benchpress', () {
|
||||
WebDriver driver;
|
||||
Runner runner;
|
||||
|
||||
beforeEach(() async {
|
||||
driver = await createTestDriver();
|
||||
await driver
|
||||
.get('http://localhost:8002/playground/src/benchpress/index.html');
|
||||
|
||||
var bindings = [{
|
||||
provide: WebDriverAdapter,
|
||||
useFactory: () => new AsyncWebDriverAdapter(driver),
|
||||
deps: []
|
||||
}];
|
||||
runner = new Runner(bindings);
|
||||
});
|
||||
|
||||
afterEach(() async {
|
||||
await driver.close();
|
||||
});
|
||||
|
||||
it('should work', () {
|
||||
return runner.sample(id: 'benchpress smoke test', execute: () async {
|
||||
var button = await driver.findElement(const By.tagName('button'));
|
||||
await button.click();
|
||||
var logText = await (await driver.findElement(const By.id('log'))).text;
|
||||
expect(logText, 'hi');
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Future<WebDriver> createTestDriver() {
|
||||
Map env = Platform.environment;
|
||||
return WebDriver.createDriver(desiredCapabilities: {
|
||||
'name': 'Dartium',
|
||||
'browserName': 'chrome',
|
||||
'chromeOptions': {
|
||||
'binary': env['DARTIUM_BIN'],
|
||||
'args': ['--js-flags=--expose-gc'],
|
||||
'perfLoggingPrefs': {
|
||||
'traceCategories':
|
||||
'v8,blink.console,disabled-by-default-devtools.timeline'
|
||||
},
|
||||
},
|
||||
'loggingPrefs': {'performance': 'ALL', 'browser': 'ALL',}
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user