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) { |