| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2014 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 /* globals TEST_F, ASSERT_EQ, ASSERT_GT, chrometest, DevEnvTest */ |
| 8 |
| 7 'use strict'; | 9 'use strict'; |
| 8 | 10 |
| 9 // Install several packages. | 11 // Install several packages. |
| 10 // This test must be run before any tests that use these packages. | 12 // This test must be run before any tests that use these packages. |
| 11 TEST_F(DevEnvTest, 'testPackageInstall', function() { | 13 TEST_F(DevEnvTest, 'testPackageInstall', function() { |
| 12 var self = this; | 14 var self = this; |
| 13 return Promise.resolve().then(function() { | 15 return Promise.resolve().then(function() { |
| 14 return self.installPackage('coreutils'); | 16 return self.installPackage('coreutils'); |
| 15 }).then(function() { | 17 }).then(function() { |
| 16 return self.installPackage('zlib'); | 18 return self.installPackage('zlib'); |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 'curl https://nacltools.storage.googleapis.com/io2014/voronoi.zip -O'); | 295 'curl https://nacltools.storage.googleapis.com/io2014/voronoi.zip -O'); |
| 294 }).then(function() { | 296 }).then(function() { |
| 295 return self.checkCommand('unzip voronoi.zip'); | 297 return self.checkCommand('unzip voronoi.zip'); |
| 296 }).then(function() { | 298 }).then(function() { |
| 297 return self.readFile('/home/user/voronoi/Makefile'); | 299 return self.readFile('/home/user/voronoi/Makefile'); |
| 298 }).then(function(data) { | 300 }).then(function(data) { |
| 299 // Check there's something in the makefile. | 301 // Check there's something in the makefile. |
| 300 ASSERT_GT(data.length, 100); | 302 ASSERT_GT(data.length, 100); |
| 301 }); | 303 }); |
| 302 }); | 304 }); |
| OLD | NEW |