Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP Control Flow v2 #280

Merged
merged 144 commits into from Aug 12, 2018
Merged

WIP Control Flow v2 #280

merged 144 commits into from Aug 12, 2018

Conversation

tourdedave
Copy link
Contributor

@tourdedave tourdedave commented Jul 3, 2018

David Haeffner added 30 commits June 27, 2018 10:18
…syntax validation) and process (generating the linked list) test groups. Processing is still WIP.
dependency between Command and CommandStackHandler.
…n after storing them. Updated tests to use the return value instead of relying on the variable name since the implementation could change.
…eprocessStack into stack and work with just stack.
…et of mutation functions (names TBD) called from within CommandStackHandler. Also swapped out Object.assign for the spread operator when creating array copies.
… file/directory structure outside of __test__
… commands itself. Also refactored checks against the command name into functions, and renamed the mutation methods into something more descriptive.
…Moved it to the root of the IO directory, updated tests accordingly, and removed unnecessary files and folders. Also added additional isCommandType style functions and refactored all command type checks to use them.
…es a push down automata and finished implementing the currently written test cases.
…ct command references and removed this check from the other command node tests. Also added test coverage and implementation for some additional cases.
…e to use the correct getter (e.g., command instead of name)
David Haeffner added 8 commits July 31, 2018 14:56
…ds) and added a generic 'verify' command to accompany the 'assert' command added yesterday.
…nstead of by name). Updated the serialize command tests for control flow to use ControlFlowCommandNames. Cleaned up control flow commands in models/Command by removing type and fixed the word wrap on some error text in playback (to be consistent with what's done in other files).
David Haeffner added 16 commits August 1, 2018 12:53
…un would hang (and couldn't abort gracefully) when a variable name wasn't provided
…s the last one (assumes usage outside of control flow commands).
…ecute script test and move the remaining one into the smoke suite.
… passes the result object back, with the next node included.
… a simple object. Kept `startingCommandNode` and removed `currentCommandNode` since this differentiation is no longer needed. Updated its usage accordingly.
…eleniumCommand` and `doPluginCommand` into `doCommand`. Also updated part of `doPluginCommand` for better readibility.
};

Selenium.prototype.doEvaluateConditional = function(condition) {
return !!(this.eval(condition, undefined, true));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not scoped?
In WebDriver it'll be scoped.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can make it explicit, but isn't it already scoped if it's undefined?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot it has a default value true, make it true anyway for clarification that it is required.
I put the default one, so that if it gets called from something internal that I'm not aware of, that it'll be scoped by default.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay.

… block in the playback `executionLoop`, pushing its execution into `doSeleniumCommand`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants