Index: ppapi/tests/testing_instance.cc |
=================================================================== |
--- ppapi/tests/testing_instance.cc (revision 86338) |
+++ ppapi/tests/testing_instance.cc (working copy) |
@@ -53,7 +53,10 @@ |
} |
pp::Var TestingInstance::GetInstanceObject() { |
- return current_case_->GetTestObject(); |
+ if (current_case_) |
+ return current_case_->GetTestObject(); |
+ |
+ return pp::Var(this, NULL); |
} |
void TestingInstance::HandleMessage(const pp::Var& message_data) { |
@@ -115,6 +118,10 @@ |
errors_.append("FAIL: Only listed tests"); |
} else { |
current_case_->RunTest(); |
+ // Automated PyAuto tests rely on finding the exact strings below. |
+ LogHTML(errors_.empty() ? |
+ "<span class=\"pass\">[SHUTDOWN]</span> All tests passed." : |
+ "<span class=\"fail\">[SHUTDOWN]</span> Some tests failed."); |
} |
// Declare we're done by setting a cookie to either "PASS" or the errors. |