| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 define([ | 5 define([ |
| 6 "gin/test/expect", | 6 "gin/test/expect", |
| 7 "mojo/public/js/bindings/core", | 7 "mojo/public/js/core", |
| 8 "gc", | 8 "gc", |
| 9 ], function(expect, core, gc) { | 9 ], function(expect, core, gc) { |
| 10 runWithMessagePipe(testNop); | 10 runWithMessagePipe(testNop); |
| 11 runWithMessagePipe(testReadAndWriteMessage); | 11 runWithMessagePipe(testReadAndWriteMessage); |
| 12 runWithMessagePipeWithOptions(testNop); | 12 runWithMessagePipeWithOptions(testNop); |
| 13 runWithMessagePipeWithOptions(testReadAndWriteMessage); | 13 runWithMessagePipeWithOptions(testReadAndWriteMessage); |
| 14 runWithDataPipe(testNop); | 14 runWithDataPipe(testNop); |
| 15 runWithDataPipe(testReadAndWriteDataPipe); | 15 runWithDataPipe(testReadAndWriteDataPipe); |
| 16 runWithDataPipeWithOptions(testNop); | 16 runWithDataPipeWithOptions(testNop); |
| 17 runWithDataPipeWithOptions(testReadAndWriteDataPipe); | 17 runWithDataPipeWithOptions(testReadAndWriteDataPipe); |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 var openHandleString = pipe.consumerHandle.toString(); | 124 var openHandleString = pipe.consumerHandle.toString(); |
| 125 expect(openHandleString.match(openHandleRE)[0]).toEqual(openHandleString); | 125 expect(openHandleString.match(openHandleRE)[0]).toEqual(openHandleString); |
| 126 | 126 |
| 127 expect(core.close(pipe.producerHandle)).toBe(core.RESULT_OK); | 127 expect(core.close(pipe.producerHandle)).toBe(core.RESULT_OK); |
| 128 expect(core.close(pipe.consumerHandle)).toBe(core.RESULT_OK); | 128 expect(core.close(pipe.consumerHandle)).toBe(core.RESULT_OK); |
| 129 | 129 |
| 130 expect(pipe.consumerHandle.toString()).toEqual("[mojo::Handle null]"); | 130 expect(pipe.consumerHandle.toString()).toEqual("[mojo::Handle null]"); |
| 131 } | 131 } |
| 132 | 132 |
| 133 }); | 133 }); |
| OLD | NEW |