Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / test / data / extensions / api_test / permissions / nacl_enabled / background.js
blob8c5cfd0e974fb149bf0bbd77164e1b86a4dd748a
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([
11 function nacl() {
12 // Nothing to do here,
13 // we call the callback when we get the notification from NaCl
15 ]);
17 function OnNaClLoad() {
18 try {
19 plugin = document.getElementById('pluginobj');
20 result = plugin.helloworld();
21 if ('hello, world.' != result) {
22 chrome.test.fail();
24 } catch(e) {
25 chrome.test.fail();
27 chrome.test.succeed();
30 function OnNaClFail() {
31 chrome.test.fail();