| 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/core", | 7 "mojo/public/js/core", |
| 8 "gc", | 8 "gc", |
| 9 ], function(expect, core, gc) { | 9 ], function(expect, core, gc) { |
| 10 | 10 |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 } | 237 } |
| 238 | 238 |
| 239 expect(core.unmapBuffer(mappedBuffer0.buffer)).toBe(core.RESULT_OK); | 239 expect(core.unmapBuffer(mappedBuffer0.buffer)).toBe(core.RESULT_OK); |
| 240 expect(core.unmapBuffer(mappedBuffer1.buffer)).toBe(core.RESULT_OK); | 240 expect(core.unmapBuffer(mappedBuffer1.buffer)).toBe(core.RESULT_OK); |
| 241 | 241 |
| 242 expect(core.close(dupedBufferHandle.handle)).toBe(core.RESULT_OK); | 242 expect(core.close(dupedBufferHandle.handle)).toBe(core.RESULT_OK); |
| 243 expect(core.close(sharedBuffer.handle)).toBe(core.RESULT_OK); | 243 expect(core.close(sharedBuffer.handle)).toBe(core.RESULT_OK); |
| 244 } | 244 } |
| 245 | 245 |
| 246 }); | 246 }); |
| OLD | NEW |