X Tutup
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
]
Expand Down Expand Up @@ -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
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion modules/benchpress/test/firefox_extension/spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions modules/examples/e2e_test/async/async_spec.dart

This file was deleted.

3 changes: 0 additions & 3 deletions modules/examples/e2e_test/hello_world/hello_world_spec.dart

This file was deleted.

3 changes: 0 additions & 3 deletions modules/examples/e2e_test/http/http_spec.dart

This file was deleted.

3 changes: 0 additions & 3 deletions modules/examples/e2e_test/jsonp/jsonp_spec.dart

This file was deleted.

3 changes: 0 additions & 3 deletions modules/examples/e2e_test/key_events/key_events_spec.dart

This file was deleted.

3 changes: 0 additions & 3 deletions modules/examples/e2e_test/material/button_spec.dart

This file was deleted.

3 changes: 0 additions & 3 deletions modules/examples/e2e_test/material/checkbox_spec.dart

This file was deleted.

3 changes: 0 additions & 3 deletions modules/examples/e2e_test/material/dialog_spec.dart

This file was deleted.

3 changes: 0 additions & 3 deletions modules/examples/e2e_test/material/grid_list_spec.dart

This file was deleted.

3 changes: 0 additions & 3 deletions modules/examples/e2e_test/material/input_spec.dart

This file was deleted.

3 changes: 0 additions & 3 deletions modules/examples/e2e_test/material/progress_linear_spec.dart

This file was deleted.

3 changes: 0 additions & 3 deletions modules/examples/e2e_test/material/radio_spec.dart

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions modules/examples/e2e_test/routing/routing_spec.dart

This file was deleted.

3 changes: 0 additions & 3 deletions modules/examples/e2e_test/sourcemap/sourcemap_spec.dart

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions modules/examples/e2e_test/web_workers/todo/todo_spec.dart

This file was deleted.

3 changes: 0 additions & 3 deletions modules/examples/e2e_test/zippy_component/zippy_spec.dart

This file was deleted.

3 changes: 3 additions & 0 deletions modules/playground/e2e_test/async/async_spec.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
library playground.e2e_test.async_spec;

main() {}
Original file line number Diff line number Diff line change
@@ -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));

Expand Down
3 changes: 3 additions & 0 deletions modules/playground/e2e_test/hello_world/hello_world_spec.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
library playground.e2e_test.hello_world.hello_world_spec;

main() {}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions modules/playground/e2e_test/http/http_spec.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
library playground.e2e_test.http.http_spec;

main() {}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions modules/playground/e2e_test/jsonp/jsonp_spec.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
library playground.e2e_test.jsonp.jsonp_spec;

main() {}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions modules/playground/e2e_test/key_events/key_events_spec.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
library playground.e2e_test.key_events.key_events_spec;

main() {}
Original file line number Diff line number Diff line change
Expand Up @@ -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); });
Expand Down
3 changes: 3 additions & 0 deletions modules/playground/e2e_test/material/button_spec.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
library playground.e2e_test.material.button_spec;

main() {}
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
3 changes: 3 additions & 0 deletions modules/playground/e2e_test/material/checkbox_spec.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
library playground.e2e_test.material.checkbox_spec;

main() {}
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
3 changes: 3 additions & 0 deletions modules/playground/e2e_test/material/dialog_spec.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
library playground.e2e_test.material.dialog_spec;

main() {}
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
3 changes: 3 additions & 0 deletions modules/playground/e2e_test/material/grid_list_spec.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
library playground.e2e_test.material.grid_list_spec;

main() {}
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
3 changes: 3 additions & 0 deletions modules/playground/e2e_test/material/input_spec.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
library playground.e2e_test.material.input_spec;

main() {}
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
library playground.e2e_test.material.progress_linear_spec;

main() {}
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
3 changes: 3 additions & 0 deletions modules/playground/e2e_test/material/radio_spec.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
library playground.e2e_test.material.radio_spec;

main() {}
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
library playground.e2e_test.hello_world.model_driven_forms_spec;

main() {}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
library playground.e2e_test.order_management_spec;

main() {}
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
library playground.e2e_test.person_management_spec;

main() {}
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
3 changes: 3 additions & 0 deletions modules/playground/e2e_test/routing/routing_spec.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
library playground.e2e_test.routing.routing_spec;

main() {}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions modules/playground/e2e_test/sourcemap/sourcemap_spec.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
library playground.e2e_test.sourcemap.sourcemap_spec;

main() {}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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\'\)/);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
library playground.e2e_test.hello_world.template_driven_forms_spec;

main() {}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
library playground.e2e_test.web_workers.kitchen_sink_spec;

main() {}
Loading
X Tutup