Skip to content

Commit 2f209a9

Browse files
authored
Merge branch 'master' into 2326/tooltip-touch-click
2 parents 744ff15 + b49bfce commit 2f209a9

File tree

142 files changed

+2196
-605
lines changed

Some content is hidden

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

142 files changed

+2196
-605
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,11 @@ env:
3030
matrix:
3131
# Order: a slower build first, so that we don't occupy an idle travis worker waiting for others to complete.
3232
- MODE=lint
33-
- MODE=extract_metadata
33+
- MODE=aot
34+
- MODE=payload
3435
- MODE=e2e
3536
- MODE=saucelabs_required
3637
- MODE=browserstack_required
37-
- MODE=saucelabs_optional
38-
- MODE=browserstack_optional
3938

4039
matrix:
4140
fast_finish: true

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ should no longer throw an error if it is missing.
7373
* **scroll:** provide directive and service to listen to scrolling ([#2188](https://github.com/angular/material2/issues/2188)) ([9b68e68](https://github.com/angular/material2/commit/9b68e68))
7474
* **sidenav:** close via escape key and restore focus to trigger element ([#1990](https://github.com/angular/material2/issues/1990)) ([a1331ec](https://github.com/angular/material2/commit/a1331ec))
7575
* **tooltip:** add input for delaying show and hide ([#2101](https://github.com/angular/material2/issues/2101)) ([e85d108](https://github.com/angular/material2/commit/e85d108))
76-
76+
* **toolbar** add responsive heights as per spec ([#2157](https://github.com/angular/material2/issues/2157)) ([78d54fc](https://github.com/angular/material2/commit/78d54fc08491ce35f9ad06dc50488cc4d4c3a5e8))
7777

7878
### Performance Improvements
7979

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License
22

3-
Copyright (c) 2016 Google, Inc.
3+
Copyright (c) 2017 Google, Inc.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,41 @@
1-
import {browser, by, element} from 'protractor';
1+
import {browser, by, element, Key} from 'protractor';
22

33
describe('checkbox', function () {
4+
45
describe('check behavior', function () {
6+
57
beforeEach(function() {
68
browser.get('/checkbox');
79
});
8-
it('should be checked when clicked, and be unchecked when clicked again', function () {
9-
element(by.id('test-checkbox')).click();
10-
element(by.css('input[id=input-test-checkbox]')).getAttribute('checked').then((value: string) => {
10+
11+
it('should be checked when clicked, and be unchecked when clicked again', () => {
12+
let checkboxEl = element(by.id('test-checkbox'));
13+
let inputEl = element(by.css('input[id=input-test-checkbox]'));
14+
15+
checkboxEl.click();
16+
inputEl.getAttribute('checked').then((value: string) => {
1117
expect(value).toBeTruthy('Expect checkbox "checked" property to be true');
1218
});
1319

14-
element(by.id('test-checkbox')).click();
15-
element(by.css('input[id=input-test-checkbox]')).getAttribute('checked').then((value: string) => {
20+
checkboxEl.click();
21+
inputEl.getAttribute('checked').then((value: string) => {
22+
expect(value).toBeFalsy('Expect checkbox "checked" property to be false');
23+
});
24+
});
25+
26+
it('should toggle the checkbox when pressing space', () => {
27+
let inputEl = element(by.css('input[id=input-test-checkbox]'));
28+
29+
inputEl.getAttribute('checked').then((value: string) => {
1630
expect(value).toBeFalsy('Expect checkbox "checked" property to be false');
1731
});
32+
33+
inputEl.sendKeys(Key.SPACE);
34+
35+
inputEl.getAttribute('checked').then((value: string) => {
36+
expect(value).toBeTruthy('Expect checkbox "checked" property to be true');
37+
});
1838
});
39+
1940
});
2041
});
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import {browser, by, element, Key, ProtractorBy} from 'protractor';
2+
3+
describe('fullscreen', () => {
4+
beforeEach(() => browser.get('/fullscreen'));
5+
6+
let overlayInBody = () =>
7+
browser.isElementPresent(by.css('body > .cdk-overlay-container') as ProtractorBy);
8+
let overlayInFullscreen = () =>
9+
browser.isElementPresent(by.css('#fullscreenpane > .cdk-overlay-container') as ProtractorBy);
10+
11+
it('should open a dialog inside a fullscreen element and move it to the document body', () => {
12+
element(by.id('fullscreen')).click();
13+
element(by.id('dialog')).click();
14+
15+
overlayInFullscreen().then((isPresent: boolean) => {
16+
expect(isPresent).toBe(true);
17+
element(by.id('exitfullscreenindialog')).click();
18+
overlayInBody().then((isPresent: boolean) => {
19+
expect(isPresent).toBe(true);
20+
});
21+
});
22+
});
23+
24+
it('should open a dialog inside the document body and move it to a fullscreen element', () => {
25+
element(by.id('dialog')).click();
26+
overlayInBody().then((isPresent: boolean) => {
27+
expect(isPresent).toBe(true);
28+
element(by.id('fullscreenindialog')).click();
29+
overlayInFullscreen().then((isPresent: boolean) => {
30+
expect(isPresent).toBe(true);
31+
element(by.id('exitfullscreenindialog')).click();
32+
overlayInBody().then((isPresent: boolean) => {
33+
expect(isPresent).toBe(true);
34+
});
35+
});
36+
});
37+
});
38+
});

e2e/components/menu/menu.e2e.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ describe('menu', () => {
4646
page.backdrop().click();
4747
page.expectMenuPresent(false);
4848

49-
// TODO(kara): temporary, remove when #1607 is fixed
50-
browser.sleep(250);
5149
page.trigger().click();
5250
expect(page.menu().getText()).toEqual('One\nTwo\nThree\nFour');
5351
page.expectMenuAlignedWith(page.menu(), 'trigger');

e2e/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"sourceMap": true,
1414
"target": "es5",
1515
"typeRoots": [
16-
"../node_modules/@types/"
16+
"../node_modules/@types"
1717
],
1818
"types": [
1919
"jasmine"

guides/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ export class PizzaPartyAppModule { }
3737
This is **required** to apply all of the core and theme styles to your application. You can either
3838
use a pre-built theme, or define your own custom theme.
3939

40-
:trident: See the [theming guide](guides/theming.md) for instructions.
40+
:trident: See the [theming guide](./theming.md) for instructions.
4141

4242
### Additional setup for gestures
43-
Some components ()`md-slide-toggle`, `md-slider`, `mdTooltip`) rely on
43+
Some components (`md-slide-toggle`, `md-slider`, `mdTooltip`) rely on
4444
[HammerJS](http://hammerjs.github.io/) for gestures. In order to get the full feature-set of these
4545
components, HammerJS must be loaded into the application.
4646

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"dgeni": "^0.4.2",
5959
"dgeni-packages": "^0.16.2",
6060
"express": "^4.14.0",
61+
"firebase-admin": "^4.0.4",
6162
"firebase-tools": "^2.2.1",
6263
"fs-extra": "^0.26.5",
6364
"glob": "^6.0.4",
@@ -67,15 +68,15 @@
6768
"gulp-clean": "^0.3.2",
6869
"gulp-clean-css": "^2.3.0",
6970
"gulp-cli": "^1.2.2",
71+
"gulp-connect": "^5.0.0",
7072
"gulp-htmlmin": "^3.0.0",
7173
"gulp-if": "^2.0.2",
7274
"gulp-markdown": "^1.2.0",
7375
"gulp-sass": "^2.3.2",
74-
"gulp-server-livereload": "^1.8.2",
7576
"gulp-shell": "^0.5.2",
7677
"gulp-sourcemaps": "^1.6.0",
7778
"gulp-transform": "^1.1.0",
78-
"gulp-typescript": "^2.13.6",
79+
"gulp-typescript": "^3.1.3",
7980
"hammerjs": "^2.0.8",
8081
"highlight.js": "^9.9.0",
8182
"jasmine-core": "^2.4.1",
@@ -85,6 +86,7 @@
8586
"karma-firefox-launcher": "^1.0.0",
8687
"karma-jasmine": "^1.0.2",
8788
"karma-sauce-launcher": "^1.0.0",
89+
"karma-sourcemap-loader": "^0.3.7",
8890
"madge": "^0.6.0",
8991
"merge2": "^1.0.2",
9092
"minimist": "^1.2.0",
@@ -97,11 +99,12 @@
9799
"strip-ansi": "^3.0.0",
98100
"stylelint": "^7.7.0",
99101
"symlink-or-copy": "^1.0.1",
100-
"travis-after-modes": "0.0.6-2",
102+
"travis-after-modes": "0.0.7",
101103
"ts-node": "^0.7.3",
102104
"tslint": "^3.13.0",
103105
"typedoc": "^0.5.1",
104106
"typescript": "~2.0.10",
107+
"uglify-js": "^2.7.5",
105108
"which": "^1.2.4"
106109
}
107110
}

scripts/browserstack/start-tunnel.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ rm $TUNNEL_FILE
3333
ARGS=""
3434

3535
# Set tunnel-id only on Travis, to make local testing easier.
36-
if [ ! -z "$TRAVIS_JOB_NUMBER" ]; then
37-
ARGS="$ARGS --local-identifier $TRAVIS_JOB_NUMBER"
36+
if [ ! -z "$TRAVIS_JOB_ID" ]; then
37+
ARGS="$ARGS --local-identifier $TRAVIS_JOB_ID"
3838
fi
3939

4040
echo "Starting Browserstack Local in the background, logging into:"

0 commit comments

Comments
 (0)