From: slavic Date: Mon, 21 May 2012 23:10:25 +0000 (+0300) Subject: update qunit X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=b48d998a6c2e569cdb5f20d07c9bbf859f48c7d5;p=html-minifier.git update qunit --- diff --git a/tests/lint_test.js b/tests/lint_test.js index d819c76..5299679 100644 --- a/tests/lint_test.js +++ b/tests/lint_test.js @@ -1,7 +1,7 @@ (function(global){ var minify, QUnit, - test, equals, ok, + test, equal, ok, input, output, HTMLLint, lint; if (typeof require === 'function') { @@ -15,7 +15,7 @@ } test = QUnit.test; - equals = QUnit.equals; + equal = QUnit.equal; ok = QUnit.ok; QUnit.module('', { @@ -33,11 +33,11 @@ }); test('lint API', function() { - equals(0, lint.log.length, '`log` property exists'); - equals("function", typeof lint.populate, '`populate` method exists'); - equals("function", typeof lint.test, '`test` method exists'); - equals("function", typeof lint.testElement, '`testElement` method exists'); - equals("function", typeof lint.testAttribute, '`testAttribute` method exists'); + equal(0, lint.log.length, '`log` property exists'); + equal("function", typeof lint.populate, '`populate` method exists'); + equal("function", typeof lint.test, '`test` method exists'); + equal("function", typeof lint.testElement, '`testElement` method exists'); + equal("function", typeof lint.testAttribute, '`testAttribute` method exists'); }); test('deprecated element (font)', function(){ diff --git a/tests/minify_test.js b/tests/minify_test.js index 7cebc6d..13ccba1 100644 --- a/tests/minify_test.js +++ b/tests/minify_test.js @@ -1,7 +1,7 @@ (function(global){ var minify, QUnit, - test, equals, ok, + test, equal, ok, input, output; if (typeof require === 'function') { @@ -13,29 +13,29 @@ } test = QUnit.test; - equals = QUnit.equals; + equal = QUnit.equal; ok = QUnit.ok; test('parsing non-trivial markup', function() { - equals(minify('

x

'), '

x

'); - equals(minify('

x

'), '

x

'); - equals(minify('

x

'), '

x

'); - equals(minify('

xxx

'), '

xxx

'); - equals(minify('

xxx

'), '

xxx

'); + equal(minify('

x

'), '

x

'); + equal(minify('

x

'), '

x

'); + equal(minify('

x

'), '

x

'); + equal(minify('

xxx

'), '

xxx

'); + equal(minify('

xxx

'), '

xxx

'); input = '
'+ 'i\'m 10 levels deep'+ '
'; - equals(minify(input), input); + equal(minify(input), input); - equals(minify('