OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 var callbackPass = chrome.test.callbackPass; | 5 var callbackPass = chrome.test.callbackPass; |
6 var callbackFail = chrome.test.callbackFail; | 6 var callbackFail = chrome.test.callbackFail; |
7 var assertTrue = chrome.test.assertTrue; | 7 var assertTrue = chrome.test.assertTrue; |
8 var assertEq = chrome.test.assertEq; | 8 var assertEq = chrome.test.assertEq; |
9 | 9 |
10 // Test properties for the verification API. | 10 // Test properties for the verification API. |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 "data", | 211 "data", |
212 callbackPass(function(result) { | 212 callbackPass(function(result) { |
213 assertEq("encrypted_data", result); | 213 assertEq("encrypted_data", result); |
214 })); | 214 })); |
215 } | 215 } |
216 ]; | 216 ]; |
217 | 217 |
218 var testToRun = window.location.search.substring(1); | 218 var testToRun = window.location.search.substring(1); |
219 chrome.test.runTests(availableTests.filter(function(op) { | 219 chrome.test.runTests(availableTests.filter(function(op) { |
220 return op.name == testToRun; | 220 return op.name == testToRun; |
221 })); | 221 })); |
OLD | NEW |