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

Unified Diff: mojo/public/js/core_unittests.js

Issue 2110103002: Make MojoWaitMany() accept zero handles. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 6 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/c/system/wait.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/js/core_unittests.js
diff --git a/mojo/public/js/core_unittests.js b/mojo/public/js/core_unittests.js
index 0f7b3ff0290297b5af332c58d8c6bcf456eb51b6..669025b6b25e70262b31523b00a9b40b02f518e9 100644
--- a/mojo/public/js/core_unittests.js
+++ b/mojo/public/js/core_unittests.js
@@ -78,9 +78,9 @@ define([
function testReadAndWriteMessage(pipe) {
var wait = core.waitMany([], [], 0);
- expect(wait.result).toBe(core.RESULT_INVALID_ARGUMENT);
+ expect(wait.result).toBe(core.RESULT_DEADLINE_EXCEEDED);
expect(wait.index).toBe(null);
- expect(wait.signalsState).toBe(null);
+ expect(wait.signalsState.length).toBe(0);
wait = core.wait(pipe.handle0, core.HANDLE_SIGNAL_READABLE, 0);
expect(wait.result).toBe(core.RESULT_DEADLINE_EXCEEDED);
« no previous file with comments | « mojo/public/c/system/wait.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698