chore(): update modal tests

This commit is contained in:
Adam Bradley
2016-02-10 01:56:51 -06:00
parent c46d25baed
commit 7c10c4dd42
5 changed files with 7 additions and 8 deletions

View File

@@ -234,7 +234,7 @@ class E2EPage {
setTimeout(() => {
alert.dismiss();
}, 100);
}, 200);
}
doDisabledBackdropAlert() {

View File

@@ -5,5 +5,5 @@ it('should toggle open menu', function() {
it('should close menu', function() {
element(by.css('[menuClose=left]')).click();
element(by.css('.e2eCloseLeftMenu')).click();
});

View File

@@ -12,7 +12,7 @@
{{p.title}}
</button>
<button ion-item menuClose="left" detail-none>
<button ion-item menuClose="left" class="e2eCloseLeftMenu" detail-none>
Close Menu
</button>

View File

@@ -454,8 +454,7 @@ export class Slides extends Ion {
let zi = new Animation(this.touch.target.children[0])
.duration(this.zoomDuration)
.easing('linear')
.fill('none');
.easing('linear');
let zw = new Animation(this.touch.target.children[0])
.duration(this.zoomDuration)

View File

@@ -91,7 +91,7 @@ export let CSS: {
export function transitionEnd(el: HTMLElement, callback: Function) {
if (el) {
function deregister() {
function unregister() {
CSS.transitionEnd.split(' ').forEach(eventName => {
el.removeEventListener(eventName, onEvent);
});
@@ -99,7 +99,7 @@ export function transitionEnd(el: HTMLElement, callback: Function) {
function onEvent(ev) {
if (el === ev.target) {
deregister();
unregister();
callback(ev);
}
}
@@ -108,7 +108,7 @@ export function transitionEnd(el: HTMLElement, callback: Function) {
el.addEventListener(eventName, onEvent);
});
return deregister;
return unregister;
}
}