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
3 // found in the LICENSE file.
5 // OnNaClLoad should be called and invoking a method
6 // in a NaCl module should return a correct value.
8 var pass = chrome.test.callbackPass;
10 chrome.test.runTests([
12 // Nothing to do here,
13 // we call the callback when we get the notification from NaCl
17 function OnNaClLoad() {
19 plugin = document.getElementById('pluginobj');
20 result = plugin.helloworld();
21 if ('hello, world.' != result) {
27 chrome.test.succeed();
30 function OnNaClFail() {