| OLD | NEW |
| 1 // Copyright 2014 The Chromium OS 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 'use strict'; | 5 'use strict'; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Simulates extension unload in case of suspend or restarts by clearing | 8 * Simulates extension unload in case of suspend or restarts by clearing |
| 9 * 'unpacker.app' members. No need to remove the NaCl module. The reason is | 9 * 'unpacker.app' members. No need to remove the NaCl module. The reason is |
| 10 * that we have to load the NaCl module manually by ourself anyway (in real | 10 * that we have to load the NaCl module manually by ourself anyway (in real |
| 11 * scenarios the browser does it), so this will only take extra time without | 11 * scenarios the browser does it), so this will only take extra time without |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 }, tests_helper.forceFailure); | 306 }, tests_helper.forceFailure); |
| 307 }); | 307 }); |
| 308 }); | 308 }); |
| 309 | 309 |
| 310 it('should unload the NaCL module', function() { | 310 it('should unload the NaCL module', function() { |
| 311 expect(unpacker.app.naclModule).to.be.null; | 311 expect(unpacker.app.naclModule).to.be.null; |
| 312 expect(unpacker.app.moduleLoadedPromise).to.be.null; | 312 expect(unpacker.app.moduleLoadedPromise).to.be.null; |
| 313 }); | 313 }); |
| 314 }); | 314 }); |
| 315 }); | 315 }); |
| OLD | NEW |