chore: rename modules/examples to modules/playground
The directory contains code authored in a style that makes it transpilable to dart. As such, these are not idiomatic examples of Angular 2 usage. The main purpose of this directory is to enable experimentation with Angular within the angular/angular repository. Closes #4342 Closes #4639
This commit is contained in:
parent
c3ab20cc87
commit
e4e74ae65c
|
@ -352,7 +352,7 @@ function proxyServeDart() {
|
|||
return jsserve(gulp, gulpPlugins, {
|
||||
port: 8002,
|
||||
proxies: [
|
||||
{route: '/examples', url: 'http://localhost:8004'},
|
||||
{route: '/playground', url: 'http://localhost:8004'},
|
||||
{route: '/benchmarks_external', url: 'http://localhost:8008'},
|
||||
{route: '/benchmarks', url: 'http://localhost:8006'}
|
||||
]
|
||||
|
@ -393,7 +393,7 @@ gulp.task('serve.dart', function(done) {
|
|||
|
||||
gulp.task('serve/examples.dart', pubserve(gulp, gulpPlugins, {
|
||||
command: DART_SDK.PUB,
|
||||
path: CONFIG.dest.dart + '/examples',
|
||||
path: CONFIG.dest.dart + '/playground',
|
||||
port: 8004
|
||||
}));
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ var runner = new benchpress.Runner([
|
|||
describe('deep tree baseline', function() {
|
||||
it('should be fast!', function(done) {
|
||||
browser.ignoreSynchronization = true;
|
||||
browser.get('http://localhost:8001/examples/src/benchpress/');
|
||||
browser.get('http://localhost:8001/playground/src/benchpress/');
|
||||
|
||||
/*
|
||||
* Tell benchpress to click the buttons to destroy and re-create the tree for each sample.
|
||||
|
|
|
@ -14,7 +14,7 @@ var assertEventsContainsName = function(events, eventName) {
|
|||
};
|
||||
|
||||
describe('firefox extension', function() {
|
||||
var TEST_URL = 'http://localhost:8001/examples/src/hello_world/index.html';
|
||||
var TEST_URL = 'http://localhost:8001/playground/src/hello_world/index.html';
|
||||
|
||||
it('should measure performance', function() {
|
||||
browser.sleep(3000); // wait for extension to load
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
library examples.e2e_test.async_spec;
|
||||
|
||||
main() {}
|
|
@ -1,3 +0,0 @@
|
|||
library examples.e2e_test.hello_world.hello_world_spec;
|
||||
|
||||
main() {}
|
|
@ -1,3 +0,0 @@
|
|||
library examples.e2e_test.http.http_spec;
|
||||
|
||||
main() {}
|
|
@ -1,3 +0,0 @@
|
|||
library examples.e2e_test.jsonp.jsonp_spec;
|
||||
|
||||
main() {}
|
|
@ -1,3 +0,0 @@
|
|||
library examples.e2e_test.key_events.key_events_spec;
|
||||
|
||||
main() {}
|
|
@ -1,3 +0,0 @@
|
|||
library examples.e2e_test.material.button_spec;
|
||||
|
||||
main() {}
|
|
@ -1,3 +0,0 @@
|
|||
library examples.e2e_test.material.checkbox_spec;
|
||||
|
||||
main() {}
|
|
@ -1,3 +0,0 @@
|
|||
library examples.e2e_test.material.dialog_spec;
|
||||
|
||||
main() {}
|
|
@ -1,3 +0,0 @@
|
|||
library examples.e2e_test.material.grid_list_spec;
|
||||
|
||||
main() {}
|
|
@ -1,3 +0,0 @@
|
|||
library examples.e2e_test.material.input_spec;
|
||||
|
||||
main() {}
|
|
@ -1,3 +0,0 @@
|
|||
library examples.e2e_test.material.progress_linear_spec;
|
||||
|
||||
main() {}
|
|
@ -1,3 +0,0 @@
|
|||
library examples.e2e_test.material.radio_spec;
|
||||
|
||||
main() {}
|
|
@ -1,3 +0,0 @@
|
|||
library examples.e2e_test.hello_world.model_driven_forms_spec;
|
||||
|
||||
main() {}
|
|
@ -1,3 +0,0 @@
|
|||
library examples.e2e_test.order_management_spec;
|
||||
|
||||
main() {}
|
|
@ -1,3 +0,0 @@
|
|||
library examples.e2e_test.person_management_spec;
|
||||
|
||||
main() {}
|
|
@ -1,3 +0,0 @@
|
|||
library examples.e2e_test.routing.routing_spec;
|
||||
|
||||
main() {}
|
|
@ -1,3 +0,0 @@
|
|||
library examples.e2e_test.sourcemap.sourcemap_spec;
|
||||
|
||||
main() {}
|
|
@ -1,3 +0,0 @@
|
|||
library examples.e2e_test.hello_world.template_driven_forms_spec;
|
||||
|
||||
main() {}
|
|
@ -1,3 +0,0 @@
|
|||
library examples.e2e_test.web_workers.kitchen_sink_spec;
|
||||
|
||||
main() {}
|
|
@ -1,3 +0,0 @@
|
|||
library examples.e2e_test.message_bus;
|
||||
|
||||
main() {}
|
|
@ -1,3 +0,0 @@
|
|||
library examples.e2e_test.web_workers.todo_spec;
|
||||
|
||||
main() {}
|
|
@ -1,3 +0,0 @@
|
|||
library examples.e2e_test.zippy_component.zippy_spec;
|
||||
|
||||
main() {}
|
|
@ -0,0 +1,3 @@
|
|||
library playground.e2e_test.async_spec;
|
||||
|
||||
main() {}
|
|
@ -1,7 +1,7 @@
|
|||
import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
|
||||
|
||||
describe('async', () => {
|
||||
var URL = 'examples/src/async/index.html';
|
||||
var URL = 'playground/src/async/index.html';
|
||||
|
||||
beforeEach(() => browser.get(URL));
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
library playground.e2e_test.hello_world.hello_world_spec;
|
||||
|
||||
main() {}
|
|
@ -5,7 +5,7 @@ describe('hello world', function() {
|
|||
afterEach(verifyNoBrowserErrors);
|
||||
|
||||
describe('hello world app', function() {
|
||||
var URL = 'examples/src/hello_world/index.html';
|
||||
var URL = 'playground/src/hello_world/index.html';
|
||||
|
||||
it('should greet', function() {
|
||||
browser.get(URL);
|
|
@ -0,0 +1,3 @@
|
|||
library playground.e2e_test.http.http_spec;
|
||||
|
||||
main() {}
|
|
@ -7,7 +7,7 @@ describe('http', function() {
|
|||
afterEach(verifyNoBrowserErrors);
|
||||
|
||||
describe('fetching', function() {
|
||||
var URL = 'examples/src/http/index.html';
|
||||
var URL = 'playground/src/http/index.html';
|
||||
|
||||
it('should fetch and display people', function() {
|
||||
browser.get(URL);
|
|
@ -0,0 +1,3 @@
|
|||
library playground.e2e_test.jsonp.jsonp_spec;
|
||||
|
||||
main() {}
|
|
@ -7,7 +7,7 @@ describe('jsonp', function() {
|
|||
afterEach(verifyNoBrowserErrors);
|
||||
|
||||
describe('fetching', function() {
|
||||
var URL = 'examples/src/jsonp/index.html';
|
||||
var URL = 'playground/src/jsonp/index.html';
|
||||
|
||||
it('should fetch and display people', function() {
|
||||
browser.get(URL);
|
|
@ -0,0 +1,3 @@
|
|||
library playground.e2e_test.key_events.key_events_spec;
|
||||
|
||||
main() {}
|
|
@ -2,7 +2,7 @@ import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
|
|||
|
||||
describe('key_events', function() {
|
||||
|
||||
var URL = 'examples/src/key_events/index.html';
|
||||
var URL = 'playground/src/key_events/index.html';
|
||||
|
||||
afterEach(verifyNoBrowserErrors);
|
||||
beforeEach(() => { browser.get(URL); });
|
|
@ -0,0 +1,3 @@
|
|||
library playground.e2e_test.material.button_spec;
|
||||
|
||||
main() {}
|
|
@ -1,7 +1,7 @@
|
|||
import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
|
||||
|
||||
describe('md-button', function() {
|
||||
var url = 'examples/src/material/button/index.html';
|
||||
var url = 'playground/src/material/button/index.html';
|
||||
|
||||
beforeEach(() => { browser.get(url); });
|
||||
afterEach(verifyNoBrowserErrors);
|
|
@ -0,0 +1,3 @@
|
|||
library playground.e2e_test.material.checkbox_spec;
|
||||
|
||||
main() {}
|
|
@ -1,7 +1,7 @@
|
|||
import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
|
||||
|
||||
describe('md-checkbox', function() {
|
||||
var url = 'examples/src/material/checkbox/index.html';
|
||||
var url = 'playground/src/material/checkbox/index.html';
|
||||
|
||||
beforeEach(() => { browser.get(url); });
|
||||
afterEach(verifyNoBrowserErrors);
|
|
@ -0,0 +1,3 @@
|
|||
library playground.e2e_test.material.dialog_spec;
|
||||
|
||||
main() {}
|
|
@ -1,7 +1,7 @@
|
|||
import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
|
||||
|
||||
describe('md-dialog', function() {
|
||||
var url = 'examples/src/material/dialog/index.html';
|
||||
var url = 'playground/src/material/dialog/index.html';
|
||||
|
||||
beforeEach(() => { browser.get(url); });
|
||||
afterEach(verifyNoBrowserErrors);
|
|
@ -0,0 +1,3 @@
|
|||
library playground.e2e_test.material.grid_list_spec;
|
||||
|
||||
main() {}
|
|
@ -1,7 +1,7 @@
|
|||
import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
|
||||
|
||||
describe('md-grid-list', function() {
|
||||
var url = 'examples/src/material/grid_list/index.html';
|
||||
var url = 'playground/src/material/grid_list/index.html';
|
||||
|
||||
beforeEach(() => { browser.get(url); });
|
||||
afterEach(verifyNoBrowserErrors);
|
|
@ -0,0 +1,3 @@
|
|||
library playground.e2e_test.material.input_spec;
|
||||
|
||||
main() {}
|
|
@ -1,7 +1,7 @@
|
|||
import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
|
||||
|
||||
describe('md-input', function() {
|
||||
var url = 'examples/src/material/input/index.html';
|
||||
var url = 'playground/src/material/input/index.html';
|
||||
|
||||
beforeEach(() => { browser.get(url); });
|
||||
afterEach(verifyNoBrowserErrors);
|
|
@ -0,0 +1,3 @@
|
|||
library playground.e2e_test.material.progress_linear_spec;
|
||||
|
||||
main() {}
|
|
@ -1,7 +1,7 @@
|
|||
import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
|
||||
|
||||
describe('md-progress-linear', function() {
|
||||
var url = 'examples/src/material/progress-linear/index.html';
|
||||
var url = 'playground/src/material/progress-linear/index.html';
|
||||
|
||||
beforeEach(() => { browser.get(url); });
|
||||
afterEach(verifyNoBrowserErrors);
|
|
@ -0,0 +1,3 @@
|
|||
library playground.e2e_test.material.radio_spec;
|
||||
|
||||
main() {}
|
|
@ -1,7 +1,7 @@
|
|||
import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
|
||||
|
||||
describe('md-radio-button', function() {
|
||||
var url = 'examples/src/material/radio/index.html';
|
||||
var url = 'playground/src/material/radio/index.html';
|
||||
|
||||
beforeEach(() => { browser.get(url); });
|
||||
afterEach(verifyNoBrowserErrors);
|
|
@ -0,0 +1,3 @@
|
|||
library playground.e2e_test.hello_world.model_driven_forms_spec;
|
||||
|
||||
main() {}
|
|
@ -4,7 +4,7 @@ describe('Model-Driven Forms', function() {
|
|||
|
||||
afterEach(verifyNoBrowserErrors);
|
||||
|
||||
var URL = 'examples/src/model_driven_forms/index.html';
|
||||
var URL = 'playground/src/model_driven_forms/index.html';
|
||||
|
||||
it('should display errors', function() {
|
||||
browser.get(URL);
|
|
@ -0,0 +1,3 @@
|
|||
library playground.e2e_test.order_management_spec;
|
||||
|
||||
main() {}
|
|
@ -1,7 +1,7 @@
|
|||
import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
|
||||
|
||||
describe('Order Management CRUD', function() {
|
||||
var URL = 'examples/src/order_management/index.html';
|
||||
var URL = 'playground/src/order_management/index.html';
|
||||
|
||||
it('should work', function() {
|
||||
browser.get(URL);
|
|
@ -0,0 +1,3 @@
|
|||
library playground.e2e_test.person_management_spec;
|
||||
|
||||
main() {}
|
|
@ -1,7 +1,7 @@
|
|||
import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
|
||||
|
||||
describe('Person Management CRUD', function() {
|
||||
var URL = 'examples/src/person_management/index.html';
|
||||
var URL = 'playground/src/person_management/index.html';
|
||||
|
||||
it('should work', function() {
|
||||
browser.get(URL);
|
|
@ -0,0 +1,3 @@
|
|||
library playground.e2e_test.routing.routing_spec;
|
||||
|
||||
main() {}
|
|
@ -12,7 +12,7 @@ describe('routing inbox-app', () => {
|
|||
afterEach(verifyNoBrowserErrors);
|
||||
|
||||
describe('index view', () => {
|
||||
var URL = 'examples/src/routing/';
|
||||
var URL = 'playground/src/routing/';
|
||||
|
||||
it('should list out the current collection of items', () => {
|
||||
browser.get(URL);
|
||||
|
@ -32,7 +32,7 @@ describe('routing inbox-app', () => {
|
|||
|
||||
|
||||
describe('drafts view', () => {
|
||||
var URL = 'examples/src/routing/#/drafts';
|
||||
var URL = 'playground/src/routing/#/drafts';
|
||||
|
||||
it('should navigate to the drafts view when the drafts link is clicked', () => {
|
||||
browser.get(URL);
|
||||
|
@ -56,7 +56,7 @@ describe('routing inbox-app', () => {
|
|||
|
||||
|
||||
describe('detail view', () => {
|
||||
var URL = 'examples/src/routing/';
|
||||
var URL = 'playground/src/routing/';
|
||||
|
||||
it('should navigate to the detail view when an email is clicked', () => {
|
||||
browser.get(URL);
|
|
@ -0,0 +1,3 @@
|
|||
library playground.e2e_test.sourcemap.sourcemap_spec;
|
||||
|
||||
main() {}
|
|
@ -4,7 +4,7 @@ var fs = require('fs');
|
|||
var sourceMap = require('source-map');
|
||||
|
||||
describe('sourcemaps', function() {
|
||||
var URL = 'examples/src/sourcemap/index.html';
|
||||
var URL = 'playground/src/sourcemap/index.html';
|
||||
|
||||
it('should map sources', function() {
|
||||
browser.get(URL);
|
||||
|
@ -29,13 +29,13 @@ describe('sourcemaps', function() {
|
|||
expect(errorColumn).not.toBeNull();
|
||||
|
||||
|
||||
var sourceMapData = fs.readFileSync('dist/js/prod/es5/examples/src/sourcemap/index.js.map');
|
||||
var sourceMapData = fs.readFileSync('dist/js/prod/es5/playground/src/sourcemap/index.js.map');
|
||||
var decoder = new sourceMap.SourceMapConsumer(JSON.parse(sourceMapData));
|
||||
|
||||
var originalPosition = decoder.originalPositionFor({line: errorLine, column: errorColumn});
|
||||
|
||||
var sourceCodeLines =
|
||||
fs.readFileSync('modules/examples/src/sourcemap/index.ts', {encoding: 'UTF-8'})
|
||||
fs.readFileSync('modules/playground/src/sourcemap/index.ts', {encoding: 'UTF-8'})
|
||||
.split('\n');
|
||||
expect(sourceCodeLines[originalPosition.line - 1])
|
||||
.toMatch(/throw new BaseException\(\'Sourcemap test\'\)/);
|
|
@ -0,0 +1,3 @@
|
|||
library playground.e2e_test.hello_world.template_driven_forms_spec;
|
||||
|
||||
main() {}
|
|
@ -4,7 +4,7 @@ describe('Template-Driven Forms', function() {
|
|||
|
||||
afterEach(verifyNoBrowserErrors);
|
||||
|
||||
var URL = 'examples/src/template_driven_forms/index.html';
|
||||
var URL = 'playground/src/template_driven_forms/index.html';
|
||||
|
||||
it('should display errors', function() {
|
||||
browser.get(URL);
|
|
@ -0,0 +1,3 @@
|
|||
library playground.e2e_test.web_workers.kitchen_sink_spec;
|
||||
|
||||
main() {}
|
|
@ -7,7 +7,7 @@ describe('WebWorkers Kitchen Sink', function() {
|
|||
browser.ignoreSynchronization = false;
|
||||
});
|
||||
var selector = "hello-app .greeting";
|
||||
var URL = "examples/src/web_workers/kitchen_sink/index.html";
|
||||
var URL = "playground/src/web_workers/kitchen_sink/index.html";
|
||||
|
||||
it('should greet', () => {
|
||||
// This test can't wait for Angular 2 as Testability is not available when using WebWorker
|
|
@ -0,0 +1,3 @@
|
|||
library playground.e2e_test.message_bus;
|
||||
|
||||
main() {}
|
|
@ -1,7 +1,7 @@
|
|||
import {verifyNoBrowserErrors} from "angular2/src/testing/e2e_util";
|
||||
import {PromiseWrapper} from "angular2/src/core/facade/async";
|
||||
|
||||
var URL = 'examples/src/web_workers/message_broker/index.html';
|
||||
var URL = 'playground/src/web_workers/message_broker/index.html';
|
||||
|
||||
describe("MessageBroker", function() {
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
library playground.e2e_test.web_workers.todo_spec;
|
||||
|
||||
main() {}
|
|
@ -7,7 +7,7 @@ describe('WebWorkers Todo', function() {
|
|||
browser.ignoreSynchronization = false;
|
||||
});
|
||||
|
||||
var URL = "examples/src/web_workers/todo/index.html";
|
||||
var URL = "playground/src/web_workers/todo/index.html";
|
||||
|
||||
it('should bootstrap', () => {
|
||||
// This test can't wait for Angular 2 as Testability is not available when using WebWorker
|
|
@ -0,0 +1,3 @@
|
|||
library playground.e2e_test.zippy_component.zippy_spec;
|
||||
|
||||
main() {}
|
|
@ -5,7 +5,7 @@ describe('Zippy Component', function() {
|
|||
afterEach(verifyNoBrowserErrors);
|
||||
|
||||
describe('zippy', function() {
|
||||
var URL = 'examples/src/zippy_component/index.html';
|
||||
var URL = 'playground/src/zippy_component/index.html';
|
||||
|
||||
beforeEach(function() { browser.get(URL); });
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
name: examples
|
||||
name: playground
|
||||
environment:
|
||||
sdk: '>=1.10.0 <2.0.0'
|
||||
dependencies:
|
|
@ -2,7 +2,7 @@
|
|||
<html>
|
||||
<title>Animation Example</title>
|
||||
<link rel="stylesheet" type="text/css" href="./css/app.css" />
|
||||
<base href="/examples/src/animate/">
|
||||
<base href="/playground/src/animate/">
|
||||
<body>
|
||||
<animate-app>Loading...</animate-app>
|
||||
$SCRIPTS$
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue