Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(549)

Unified Diff: mojo/public/js/tests/core_unittest.js

Issue 2744943002: Mojo: Move waiting APIs to public library (Closed)
Patch Set: . Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/js/new_bindings/connector.js ('k') | services/tracing/service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/js/tests/core_unittest.js
diff --git a/mojo/public/js/tests/core_unittest.js b/mojo/public/js/tests/core_unittest.js
index 7c77713b29587e6fe0a8b313511e0cb5622fedf4..86a997f1e78947ccbfaca99900f096d50b561858 100644
--- a/mojo/public/js/tests/core_unittest.js
+++ b/mojo/public/js/tests/core_unittest.js
@@ -115,8 +115,7 @@ define([
expect(state0.satisfiedSignals).toBe(core.HANDLE_SIGNAL_WRITABLE);
expect(state0.satisfiableSignals).toBe(HANDLE_SIGNAL_ALL);
- var wait = core.wait(pipe.handle1, core.HANDLE_SIGNAL_READABLE,
- core.DEADLINE_INDEFINITE);
+ var wait = core.wait(pipe.handle1, core.HANDLE_SIGNAL_READABLE);
expect(wait.result).toBe(core.RESULT_OK);
expect(wait.signalsState.satisfiedSignals).toBe(HANDLE_SIGNAL_READWRITABLE);
expect(wait.signalsState.satisfiableSignals).toBe(HANDLE_SIGNAL_ALL);
@@ -145,8 +144,7 @@ define([
expect(write.result).toBe(core.RESULT_OK);
expect(write.numBytes).toBe(42);
- var wait = core.wait(pipe.consumerHandle, core.HANDLE_SIGNAL_READABLE,
- core.DEADLINE_INDEFINITE);
+ var wait = core.wait(pipe.consumerHandle, core.HANDLE_SIGNAL_READABLE);
expect(wait.result).toBe(core.RESULT_OK);
var peeked = core.readData(
pipe.consumerHandle,
« no previous file with comments | « mojo/public/js/new_bindings/connector.js ('k') | services/tracing/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698