mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 19:41:49 +00:00
![Andreas Tolfsen](/assets/img/avatar_default.png)
This makes the `implicitWaitFor` utility from testing/marionette/element.js generally available in Marionette. It improves on the design of the old wait utility by providing promise-like resolve and reject options to the evaluated function. These can be used to indicate success or failure of waiting. If resolved, the provided value is returned immediately. When rejected, the function is evaluated over again until the timeout is reached or an error is thrown. It is useful to indicate success and failure state because it saves the calling code from guessing based on the return value. Guessing from the return value can be problematic since there are certain types and values in JavaScript that are ambigeous or misleading, such as the fact that empty arrays are evaluated as a truthy value. MozReview-Commit-ID: G8F99tdbiNb --HG-- extra : rebase_source : 88647b1c7115f15649d5029391ff21567f9d527c
45 lines
1.6 KiB
Plaintext
45 lines
1.6 KiB
Plaintext
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
marionette.jar:
|
|
% content marionette %content/
|
|
content/server.js (server.js)
|
|
content/driver.js (driver.js)
|
|
content/action.js (action.js)
|
|
content/legacyaction.js (legacyaction.js)
|
|
content/browser.js (browser.js)
|
|
content/interaction.js (interaction.js)
|
|
content/accessibility.js (accessibility.js)
|
|
content/listener.js (listener.js)
|
|
content/element.js (element.js)
|
|
content/simpletest.js (simpletest.js)
|
|
content/frame.js (frame.js)
|
|
content/cert.js (cert.js)
|
|
content/event.js (event.js)
|
|
content/error.js (error.js)
|
|
content/wait.js (wait.js)
|
|
content/message.js (message.js)
|
|
content/dispatcher.js (dispatcher.js)
|
|
content/modal.js (modal.js)
|
|
content/proxy.js (proxy.js)
|
|
content/capture.js (capture.js)
|
|
content/cookies.js (cookies.js)
|
|
content/atom.js (atom.js)
|
|
content/evaluate.js (evaluate.js)
|
|
content/logging.js (logging.js)
|
|
content/navigate.js (navigate.js)
|
|
content/l10n.js (l10n.js)
|
|
content/assert.js (assert.js)
|
|
content/addon.js (addon.js)
|
|
content/session.js (session.js)
|
|
#ifdef ENABLE_TESTS
|
|
content/test.xul (chrome/test.xul)
|
|
content/test2.xul (chrome/test2.xul)
|
|
content/test_dialog.dtd (chrome/test_dialog.dtd)
|
|
content/test_dialog.properties (chrome/test_dialog.properties)
|
|
content/test_dialog.xul (chrome/test_dialog.xul)
|
|
content/test_nested_iframe.xul (chrome/test_nested_iframe.xul)
|
|
content/test_anonymous_content.xul (chrome/test_anonymous_content.xul)
|
|
#endif
|