Zhenbo Li : mshtml/tests: Better output when an exception is caught.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Aug 7 14:52:28 CDT 2014


Module: wine
Branch: master
Commit: c5d75c3ae188ed7fbb4738749a0056d9b564aa0a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c5d75c3ae188ed7fbb4738749a0056d9b564aa0a

Author: Zhenbo Li <litimetal at gmail.com>
Date:   Thu Aug  7 08:30:21 2014 +0800

mshtml/tests: Better output when an exception is caught.

---

 dlls/mshtml/tests/exectest.html | 4 ++--
 dlls/mshtml/tests/jstest.html   | 2 +-
 dlls/mshtml/tests/vbtest.html   | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/mshtml/tests/exectest.html b/dlls/mshtml/tests/exectest.html
index ca06e3c..6bf5e8e 100644
--- a/dlls/mshtml/tests/exectest.html
+++ b/dlls/mshtml/tests/exectest.html
@@ -55,7 +55,7 @@ try {
     testPutSrc();
     testPutText();
 }catch(e) {
-    ok(false, "Got an exception");
+    ok(false, "Got an exception " + e.message);
 }
 
 function testPutSrc2() {
@@ -123,7 +123,7 @@ document.body.onload = function() {
         testPutSrc2();
         testPutText2();
     }catch(e) {
-        ok(false, "got an exception");
+        ok(false, "got an exception " + e.message);
     }
 
     external.reportSuccess();
diff --git a/dlls/mshtml/tests/jstest.html b/dlls/mshtml/tests/jstest.html
index b47de42..7861196 100644
--- a/dlls/mshtml/tests/jstest.html
+++ b/dlls/mshtml/tests/jstest.html
@@ -248,7 +248,7 @@ function runTest() {
     try {
         runTests();
     }catch(e) {
-        ok(false, "got exception");
+        ok(false, "got exception " + e.message);
     }
 
     external.reportSuccess();
diff --git a/dlls/mshtml/tests/vbtest.html b/dlls/mshtml/tests/vbtest.html
index c965f42..382442a 100644
--- a/dlls/mshtml/tests/vbtest.html
+++ b/dlls/mshtml/tests/vbtest.html
@@ -24,7 +24,7 @@ try {
     counter++;
     incCounter(2);
 }catch(e) {
-    ok(false, "got an exception");
+    ok(false, "got an exception " + e.message);
 }
 </script>
 <script>




More information about the wine-cvs mailing list