Fix QUnit.log and references to it to reflect the currently included QUnit implementation; add missing files (test1.html is still failing even after the fixes, though it was not one of the tests included with all_tests.html)

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2762 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Brett Zamir
2014-04-07 05:33:44 +00:00
parent 0c9308dd98
commit 160c7303ca
14 changed files with 34 additions and 31 deletions

View File

@@ -13,9 +13,9 @@
<script>
$(function() {
// log function
QUnit.log = function(result, message) {
QUnit.log = function(details) {
if (window.console && window.console.log) {
window.console.log(result +' :: '+ message);
window.console.log(details.result +' :: '+ details.message);
}
};
var NS = svgedit.NS;
@@ -457,7 +457,7 @@
drawing.setLayerOpacity(LAYER3, -1.4);
ok(drawing.getLayerOpacity(LAYER1) == 0.4);
QUnit.log('layer2 opacity', drawing.getLayerOpacity(LAYER2));
QUnit.log({result: 'layer2 opacity', message: drawing.getLayerOpacity(LAYER2)});
ok(drawing.getLayerOpacity(LAYER2) == 1.0);
ok(drawing.getLayerOpacity(LAYER3) == 1.0);