From b48d998a6c2e569cdb5f20d07c9bbf859f48c7d5 Mon Sep 17 00:00:00 2001 From: slavic Date: Tue, 22 May 2012 02:10:25 +0300 Subject: [PATCH] update qunit --- tests/lint_test.js | 14 +- tests/minify_test.js | 288 +++--- tests/qunit.js | 2330 ++++++++++++++++++++++++++++-------------- 3 files changed, 1697 insertions(+), 935 deletions(-) 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('