Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1443)

Unified Diff: native_client_sdk/src/tests/nacl_io_test/example.js

Issue 23531034: [NaCl SDK] Don't exit from nacl_io_test before posting message to JS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « native_client_sdk/src/examples/common.js ('k') | native_client_sdk/src/tests/nacl_io_test/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/tests/nacl_io_test/example.js
diff --git a/native_client_sdk/src/tests/nacl_io_test/example.js b/native_client_sdk/src/tests/nacl_io_test/example.js
index 3a65c8961f2e843e8f245f136fb12d78c334175c..829a4900310b54b9e7590e6eb0ec6cf905ab0ce3 100644
--- a/native_client_sdk/src/tests/nacl_io_test/example.js
+++ b/native_client_sdk/src/tests/nacl_io_test/example.js
@@ -46,6 +46,15 @@ function endCommand(testName, testResult) {
function testendCommand() {
testsFinished = true;
+ common.removeModule();
+
+ if (failedTests) {
+ common.updateStatus('FAILED');
+ document.getElementById('statusField').classList.add('failed');
+ } else {
+ common.updateStatus('OK');
+ document.getElementById('statusField').classList.add('ok');
+ }
}
function handleMessage(event) {
« no previous file with comments | « native_client_sdk/src/examples/common.js ('k') | native_client_sdk/src/tests/nacl_io_test/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698