-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
66 additions
and
64 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
addon/-private/execution_context/acceptance-native-events.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import ExecutionContext from './native-events-context'; | ||
import wait from 'ember-test-helpers/wait'; | ||
|
||
import { | ||
visit | ||
} from 'ember-native-dom-helpers'; | ||
|
||
export default function AcceptanceNativeEventsExecutionContext(pageObjectNode) { | ||
ExecutionContext.call(this, pageObjectNode); | ||
} | ||
|
||
AcceptanceNativeEventsExecutionContext.prototype = Object.create(ExecutionContext.prototype); | ||
|
||
AcceptanceNativeEventsExecutionContext.prototype.visit = function() { | ||
return visit(...arguments); | ||
}; | ||
|
||
AcceptanceNativeEventsExecutionContext.prototype.runAsync = function(cb) { | ||
(window.wait || wait)().then(() => { | ||
cb(this); | ||
}); | ||
|
||
return this.pageObjectNode; | ||
}; | ||
|
20 changes: 0 additions & 20 deletions
20
addon/-private/execution_context/integration-native-dom.js
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
addon/-private/execution_context/integration-native-events.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import ExecutionContext from './native-events-context'; | ||
|
||
import Ember from 'ember'; | ||
const { run } = Ember; | ||
|
||
export default function IntegrationNativeEventsExecutionContext(pageObjectNode, testContext) { | ||
ExecutionContext.call(this, pageObjectNode, testContext); | ||
} | ||
|
||
IntegrationNativeEventsExecutionContext.prototype = Object.create(ExecutionContext.prototype); | ||
|
||
IntegrationNativeEventsExecutionContext.prototype.visit = function() {}; | ||
|
||
IntegrationNativeEventsExecutionContext.prototype.runAsync = function(cb) { | ||
run(() => { | ||
cb(this); | ||
}); | ||
|
||
return this.pageObjectNode; | ||
}; | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters