| OLD | NEW |
| 1 // Copyright (c) 2011 The Native Client Authors. All rights reserved. | 1 // Copyright (c) 2011 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 function setupTests(tester, plugin) { | 5 function setupTests(tester, plugin) { |
| 6 // TODO(tester): replace with your tests. | 6 // TODO(tester): replace with your tests. |
| 7 | 7 |
| 8 // Below are sample test cases demonstrating postMessage as the test | 8 // Below are sample test cases demonstrating postMessage as the test |
| 9 // driving mechanism. | 9 // driving mechanism. |
| 10 | 10 |
| 11 tester.addAsyncTest('Example::Simple', function(status) { | 11 tester.addAsyncTest('Example::Simple', function(status) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 32 } else { | 32 } else { |
| 33 status.assertEqual(message.data, 'Callback'); | 33 status.assertEqual(message.data, 'Callback'); |
| 34 status.pass(); | 34 status.pass(); |
| 35 } | 35 } |
| 36 }); | 36 }); |
| 37 | 37 |
| 38 plugin.addEventListener("message", messageListener, false); | 38 plugin.addEventListener("message", messageListener, false); |
| 39 plugin.postMessage("TestCallback"); | 39 plugin.postMessage("TestCallback"); |
| 40 }); | 40 }); |
| 41 } | 41 } |
| OLD | NEW |