Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Web Inspector: add TestSuite hooks for per-testcase setup and teardow…
…n actions https://bugs.webkit.org/show_bug.cgi?id=148641 Reviewed by Timothy Hatcher. Source/WebInspectorUI: It should be possible to run setup and teardown actions for each test case. The use case here is to add listeners, set up testcase-specific state, etc. To match how test functions work in each suite, the sync and async implementations take functions with no arguments and(resolve, reject), respectively. * UserInterface/Test/TestSuite.js: (TestSuite.prototype.addTestCase): (TestSuite.messageFromThrownObject): (TestSuite): (AsyncTestSuite.prototype.runTestCases): Stick the extra functions in the chain. (AsyncTestSuite): (SyncTestSuite.prototype.runTestCases): (SyncTestSuite): LayoutTests: Extend existing unit tests to also exercise setup and teardown actions. * inspector/unit-tests/async-test-suite.html: * inspector/unit-tests/async-test-suite-expected.txt: * inspector/unit-tests/sync-test-suite.html: * inspector/unit-tests/sync-test-suite-expected.txt: Canonical link: https://commits.webkit.org/166791@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189213 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
7 changed files
with
559 additions
and
22 deletions.
There are no files selected for viewing
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
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
Oops, something went wrong.