OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Called by the common.js module. | 4 // Called by the common.js module. |
5 function moduleDidLoad() { | 5 function moduleDidLoad() { |
6 // The module is not hidden by default so we can easily see if the plugin | 6 // The module is not hidden by default so we can easily see if the plugin |
7 // failed to load. | 7 // failed to load. |
8 common.hideModule(); | 8 common.hideModule(); |
9 common.naclModule.postMessage('RunGTest'); | 9 common.naclModule.postMessage('RunGTest'); |
10 } | 10 } |
11 | 11 |
12 function handleMessage(event) { | 12 function handleMessage(event) { |
13 var logEl = document.getElementById('log'); | 13 var logEl = document.getElementById('log'); |
14 logEl.innerHTML += event.data + '<br>'; | 14 logEl.innerHTML += event.data + '<br>'; |
15 } | 15 } |
OLD | NEW |