mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(): update modal tests
This commit is contained in:
@@ -234,7 +234,7 @@ class E2EPage {
|
||||
|
||||
setTimeout(() => {
|
||||
alert.dismiss();
|
||||
}, 100);
|
||||
}, 200);
|
||||
}
|
||||
|
||||
doDisabledBackdropAlert() {
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user