| 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 startsWith(str, prefix) { | 5 function startsWith(str, prefix) { |
| 6 return (str.indexOf(prefix) === 0); | 6 return (str.indexOf(prefix) === 0); |
| 7 } | 7 } |
| 8 | 8 |
| 9 function setupTests(tester, plugin) { | 9 function setupTests(tester, plugin) { |
| 10 ////////////////////////////////////////////////////////////////////////////// | 10 ////////////////////////////////////////////////////////////////////////////// |
| 11 // Test Helpers | 11 // Test Helpers |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 }); | 60 }); |
| 61 | 61 |
| 62 // PPP_Instance::HandleDocumentLoad is only used with full-frame plugins. | 62 // PPP_Instance::HandleDocumentLoad is only used with full-frame plugins. |
| 63 // This is tested in tests/ppapi_browser/extension_mime_handler/ | 63 // This is tested in tests/ppapi_browser/extension_mime_handler/ |
| 64 | 64 |
| 65 // PPP_Instance::DidDestroy is never invoked in the untrusted code. | 65 // PPP_Instance::DidDestroy is never invoked in the untrusted code. |
| 66 // We could wait for a crash event from it, but CallOnMainThread semantics | 66 // We could wait for a crash event from it, but CallOnMainThread semantics |
| 67 // on shutdown are still buggy, so it might never come even if the function | 67 // on shutdown are still buggy, so it might never come even if the function |
| 68 // triggered. Plus waiting for something not to happen makes the test flaky. | 68 // triggered. Plus waiting for something not to happen makes the test flaky. |
| 69 } | 69 } |
| OLD | NEW |