diff options
author | Jose <jose@zeroc.com> | 2016-09-20 11:51:40 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2016-09-20 11:51:40 +0200 |
commit | ca610291158d45c613c6ea524010adee43c02ba3 (patch) | |
tree | 144fa1f07cbdf8514686b66b3eaf4424e87e79c0 /js/test | |
parent | update ice version in TestController.py (diff) | |
download | ice-ca610291158d45c613c6ea524010adee43c02ba3.tar.bz2 ice-ca610291158d45c613c6ea524010adee43c02ba3.tar.xz ice-ca610291158d45c613c6ea524010adee43c02ba3.zip |
ICE-7081 - JavaScript testsuite should install a global error handler
Diffstat (limited to 'js/test')
-rw-r--r-- | js/test/Common/TestSuite.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/test/Common/TestSuite.js b/js/test/Common/TestSuite.js index 1c42f4edad4..41f5773202b 100644 --- a/js/test/Common/TestSuite.js +++ b/js/test/Common/TestSuite.js @@ -36,6 +36,17 @@ $(document).ready( } }; + window.onerror = function(msg, url, line, column, err) + { + var e = msg + " at " + url + ":" + line + ":" + column; + if(err) + { + e += "\n" + err.stack; + } + out.writeLine(e); + return false; + }; + var query = new URI(document.location.href).search(true); $("#language").val(query.language !== undefined ? query.language : "cpp"); |