Skip to content

Commit e4e74ae

Browse files
committed
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 angular#4342 Closes angular#4639
1 parent c3ab20c commit e4e74ae

File tree

248 files changed

+190
-190
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

248 files changed

+190
-190
lines changed

gulpfile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ function proxyServeDart() {
352352
return jsserve(gulp, gulpPlugins, {
353353
port: 8002,
354354
proxies: [
355-
{route: '/examples', url: 'http://localhost:8004'},
355+
{route: '/playground', url: 'http://localhost:8004'},
356356
{route: '/benchmarks_external', url: 'http://localhost:8008'},
357357
{route: '/benchmarks', url: 'http://localhost:8006'}
358358
]
@@ -393,7 +393,7 @@ gulp.task('serve.dart', function(done) {
393393

394394
gulp.task('serve/examples.dart', pubserve(gulp, gulpPlugins, {
395395
command: DART_SDK.PUB,
396-
path: CONFIG.dest.dart + '/examples',
396+
path: CONFIG.dest.dart + '/playground',
397397
port: 8004
398398
}));
399399

modules/benchpress/test/firefox_extension/sample_benchmark.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var runner = new benchpress.Runner([
1414
describe('deep tree baseline', function() {
1515
it('should be fast!', function(done) {
1616
browser.ignoreSynchronization = true;
17-
browser.get('http://localhost:8001/examples/src/benchpress/');
17+
browser.get('http://localhost:8001/playground/src/benchpress/');
1818

1919
/*
2020
* Tell benchpress to click the buttons to destroy and re-create the tree for each sample.

modules/benchpress/test/firefox_extension/spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var assertEventsContainsName = function(events, eventName) {
1414
};
1515

1616
describe('firefox extension', function() {
17-
var TEST_URL = 'http://localhost:8001/examples/src/hello_world/index.html';
17+
var TEST_URL = 'http://localhost:8001/playground/src/hello_world/index.html';
1818

1919
it('should measure performance', function() {
2020
browser.sleep(3000); // wait for extension to load

modules/examples/e2e_test/async/async_spec.dart

-3
This file was deleted.

modules/examples/e2e_test/hello_world/hello_world_spec.dart

-3
This file was deleted.

modules/examples/e2e_test/http/http_spec.dart

-3
This file was deleted.

modules/examples/e2e_test/jsonp/jsonp_spec.dart

-3
This file was deleted.

modules/examples/e2e_test/key_events/key_events_spec.dart

-3
This file was deleted.

modules/examples/e2e_test/material/button_spec.dart

-3
This file was deleted.

modules/examples/e2e_test/material/checkbox_spec.dart

-3
This file was deleted.

modules/examples/e2e_test/material/dialog_spec.dart

-3
This file was deleted.

modules/examples/e2e_test/material/grid_list_spec.dart

-3
This file was deleted.

modules/examples/e2e_test/material/input_spec.dart

-3
This file was deleted.

modules/examples/e2e_test/material/progress_linear_spec.dart

-3
This file was deleted.

modules/examples/e2e_test/material/radio_spec.dart

-3
This file was deleted.

modules/examples/e2e_test/model_driven_forms/model_driven_forms_spec.dart

-3
This file was deleted.

modules/examples/e2e_test/order_management/order_management_spec.dart

-3
This file was deleted.

modules/examples/e2e_test/person_management/person_management_spec.dart

-3
This file was deleted.

modules/examples/e2e_test/routing/routing_spec.dart

-3
This file was deleted.

modules/examples/e2e_test/sourcemap/sourcemap_spec.dart

-3
This file was deleted.

modules/examples/e2e_test/template_driven_forms/template_driven_forms_spec.dart

-3
This file was deleted.

modules/examples/e2e_test/web_workers/kitchen_sink/kitchen_sink_spec.dart

-3
This file was deleted.

modules/examples/e2e_test/web_workers/message_broker/message_broker_spec.dart

-3
This file was deleted.

modules/examples/e2e_test/web_workers/todo/todo_spec.dart

-3
This file was deleted.

modules/examples/e2e_test/zippy_component/zippy_spec.dart

-3
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
library playground.e2e_test.async_spec;
2+
3+
main() {}

modules/examples/e2e_test/async/async_spec.ts modules/playground/e2e_test/async/async_spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
22

33
describe('async', () => {
4-
var URL = 'examples/src/async/index.html';
4+
var URL = 'playground/src/async/index.html';
55

66
beforeEach(() => browser.get(URL));
77

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
library playground.e2e_test.hello_world.hello_world_spec;
2+
3+
main() {}

modules/examples/e2e_test/hello_world/hello_world_spec.ts modules/playground/e2e_test/hello_world/hello_world_spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ describe('hello world', function() {
55
afterEach(verifyNoBrowserErrors);
66

77
describe('hello world app', function() {
8-
var URL = 'examples/src/hello_world/index.html';
8+
var URL = 'playground/src/hello_world/index.html';
99

1010
it('should greet', function() {
1111
browser.get(URL);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
library playground.e2e_test.http.http_spec;
2+
3+
main() {}

modules/examples/e2e_test/http/http_spec.ts modules/playground/e2e_test/http/http_spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ describe('http', function() {
77
afterEach(verifyNoBrowserErrors);
88

99
describe('fetching', function() {
10-
var URL = 'examples/src/http/index.html';
10+
var URL = 'playground/src/http/index.html';
1111

1212
it('should fetch and display people', function() {
1313
browser.get(URL);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
library playground.e2e_test.jsonp.jsonp_spec;
2+
3+
main() {}

modules/examples/e2e_test/jsonp/jsonp_spec.ts modules/playground/e2e_test/jsonp/jsonp_spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ describe('jsonp', function() {
77
afterEach(verifyNoBrowserErrors);
88

99
describe('fetching', function() {
10-
var URL = 'examples/src/jsonp/index.html';
10+
var URL = 'playground/src/jsonp/index.html';
1111

1212
it('should fetch and display people', function() {
1313
browser.get(URL);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
library playground.e2e_test.key_events.key_events_spec;
2+
3+
main() {}

modules/examples/e2e_test/key_events/key_events_spec.ts modules/playground/e2e_test/key_events/key_events_spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
22

33
describe('key_events', function() {
44

5-
var URL = 'examples/src/key_events/index.html';
5+
var URL = 'playground/src/key_events/index.html';
66

77
afterEach(verifyNoBrowserErrors);
88
beforeEach(() => { browser.get(URL); });
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
library playground.e2e_test.material.button_spec;
2+
3+
main() {}

modules/examples/e2e_test/material/button_spec.ts modules/playground/e2e_test/material/button_spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
22

33
describe('md-button', function() {
4-
var url = 'examples/src/material/button/index.html';
4+
var url = 'playground/src/material/button/index.html';
55

66
beforeEach(() => { browser.get(url); });
77
afterEach(verifyNoBrowserErrors);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
library playground.e2e_test.material.checkbox_spec;
2+
3+
main() {}

modules/examples/e2e_test/material/checkbox_spec.ts modules/playground/e2e_test/material/checkbox_spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
22

33
describe('md-checkbox', function() {
4-
var url = 'examples/src/material/checkbox/index.html';
4+
var url = 'playground/src/material/checkbox/index.html';
55

66
beforeEach(() => { browser.get(url); });
77
afterEach(verifyNoBrowserErrors);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
library playground.e2e_test.material.dialog_spec;
2+
3+
main() {}

modules/examples/e2e_test/material/dialog_spec.ts modules/playground/e2e_test/material/dialog_spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
22

33
describe('md-dialog', function() {
4-
var url = 'examples/src/material/dialog/index.html';
4+
var url = 'playground/src/material/dialog/index.html';
55

66
beforeEach(() => { browser.get(url); });
77
afterEach(verifyNoBrowserErrors);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
library playground.e2e_test.material.grid_list_spec;
2+
3+
main() {}

modules/examples/e2e_test/material/grid_list_spec.ts modules/playground/e2e_test/material/grid_list_spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
22

33
describe('md-grid-list', function() {
4-
var url = 'examples/src/material/grid_list/index.html';
4+
var url = 'playground/src/material/grid_list/index.html';
55

66
beforeEach(() => { browser.get(url); });
77
afterEach(verifyNoBrowserErrors);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
library playground.e2e_test.material.input_spec;
2+
3+
main() {}

modules/examples/e2e_test/material/input_spec.ts modules/playground/e2e_test/material/input_spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
22

33
describe('md-input', function() {
4-
var url = 'examples/src/material/input/index.html';
4+
var url = 'playground/src/material/input/index.html';
55

66
beforeEach(() => { browser.get(url); });
77
afterEach(verifyNoBrowserErrors);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
library playground.e2e_test.material.progress_linear_spec;
2+
3+
main() {}

modules/examples/e2e_test/material/progress_linear_spec.ts modules/playground/e2e_test/material/progress_linear_spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
22

33
describe('md-progress-linear', function() {
4-
var url = 'examples/src/material/progress-linear/index.html';
4+
var url = 'playground/src/material/progress-linear/index.html';
55

66
beforeEach(() => { browser.get(url); });
77
afterEach(verifyNoBrowserErrors);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
library playground.e2e_test.material.radio_spec;
2+
3+
main() {}

modules/examples/e2e_test/material/radio_spec.ts modules/playground/e2e_test/material/radio_spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
22

33
describe('md-radio-button', function() {
4-
var url = 'examples/src/material/radio/index.html';
4+
var url = 'playground/src/material/radio/index.html';
55

66
beforeEach(() => { browser.get(url); });
77
afterEach(verifyNoBrowserErrors);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
library playground.e2e_test.hello_world.model_driven_forms_spec;
2+
3+
main() {}

modules/examples/e2e_test/model_driven_forms/model_driven_forms_spec.ts modules/playground/e2e_test/model_driven_forms/model_driven_forms_spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ describe('Model-Driven Forms', function() {
44

55
afterEach(verifyNoBrowserErrors);
66

7-
var URL = 'examples/src/model_driven_forms/index.html';
7+
var URL = 'playground/src/model_driven_forms/index.html';
88

99
it('should display errors', function() {
1010
browser.get(URL);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
library playground.e2e_test.order_management_spec;
2+
3+
main() {}

modules/examples/e2e_test/order_management/order_management_spec.ts modules/playground/e2e_test/order_management/order_management_spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
22

33
describe('Order Management CRUD', function() {
4-
var URL = 'examples/src/order_management/index.html';
4+
var URL = 'playground/src/order_management/index.html';
55

66
it('should work', function() {
77
browser.get(URL);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
library playground.e2e_test.person_management_spec;
2+
3+
main() {}

modules/examples/e2e_test/person_management/person_management_spec.ts modules/playground/e2e_test/person_management/person_management_spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
22

33
describe('Person Management CRUD', function() {
4-
var URL = 'examples/src/person_management/index.html';
4+
var URL = 'playground/src/person_management/index.html';
55

66
it('should work', function() {
77
browser.get(URL);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
library playground.e2e_test.routing.routing_spec;
2+
3+
main() {}

modules/examples/e2e_test/routing/routing_spec.ts modules/playground/e2e_test/routing/routing_spec.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('routing inbox-app', () => {
1212
afterEach(verifyNoBrowserErrors);
1313

1414
describe('index view', () => {
15-
var URL = 'examples/src/routing/';
15+
var URL = 'playground/src/routing/';
1616

1717
it('should list out the current collection of items', () => {
1818
browser.get(URL);
@@ -32,7 +32,7 @@ describe('routing inbox-app', () => {
3232

3333

3434
describe('drafts view', () => {
35-
var URL = 'examples/src/routing/#/drafts';
35+
var URL = 'playground/src/routing/#/drafts';
3636

3737
it('should navigate to the drafts view when the drafts link is clicked', () => {
3838
browser.get(URL);
@@ -56,7 +56,7 @@ describe('routing inbox-app', () => {
5656

5757

5858
describe('detail view', () => {
59-
var URL = 'examples/src/routing/';
59+
var URL = 'playground/src/routing/';
6060

6161
it('should navigate to the detail view when an email is clicked', () => {
6262
browser.get(URL);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
library playground.e2e_test.sourcemap.sourcemap_spec;
2+
3+
main() {}

modules/examples/e2e_test/sourcemap/sourcemap_spec.ts modules/playground/e2e_test/sourcemap/sourcemap_spec.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var fs = require('fs');
44
var sourceMap = require('source-map');
55

66
describe('sourcemaps', function() {
7-
var URL = 'examples/src/sourcemap/index.html';
7+
var URL = 'playground/src/sourcemap/index.html';
88

99
it('should map sources', function() {
1010
browser.get(URL);
@@ -29,13 +29,13 @@ describe('sourcemaps', function() {
2929
expect(errorColumn).not.toBeNull();
3030

3131

32-
var sourceMapData = fs.readFileSync('dist/js/prod/es5/examples/src/sourcemap/index.js.map');
32+
var sourceMapData = fs.readFileSync('dist/js/prod/es5/playground/src/sourcemap/index.js.map');
3333
var decoder = new sourceMap.SourceMapConsumer(JSON.parse(sourceMapData));
3434

3535
var originalPosition = decoder.originalPositionFor({line: errorLine, column: errorColumn});
3636

3737
var sourceCodeLines =
38-
fs.readFileSync('modules/examples/src/sourcemap/index.ts', {encoding: 'UTF-8'})
38+
fs.readFileSync('modules/playground/src/sourcemap/index.ts', {encoding: 'UTF-8'})
3939
.split('\n');
4040
expect(sourceCodeLines[originalPosition.line - 1])
4141
.toMatch(/throw new BaseException\(\'Sourcemap test\'\)/);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
library playground.e2e_test.hello_world.template_driven_forms_spec;
2+
3+
main() {}

modules/examples/e2e_test/template_driven_forms/template_driven_forms_spec.ts modules/playground/e2e_test/template_driven_forms/template_driven_forms_spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ describe('Template-Driven Forms', function() {
44

55
afterEach(verifyNoBrowserErrors);
66

7-
var URL = 'examples/src/template_driven_forms/index.html';
7+
var URL = 'playground/src/template_driven_forms/index.html';
88

99
it('should display errors', function() {
1010
browser.get(URL);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
library playground.e2e_test.web_workers.kitchen_sink_spec;
2+
3+
main() {}

0 commit comments

Comments
 (0)