diff options
Diffstat (limited to 'test/bootlint_test.js')
-rw-r--r-- | test/bootlint_test.js | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/test/bootlint_test.js b/test/bootlint_test.js index bbca813..c01e7bb 100644 --- a/test/bootlint_test.js +++ b/test/bootlint_test.js @@ -130,45 +130,6 @@ exports.bootlint = { test.done(); }, /* - 'jQuery': function (test) { - test.expect(5); - test.deepEqual(lintHtml(utf8Fixture('jquery/present.html')), - [], - 'should not complain when jQuery is present.'); - test.deepEqual(lintHtml(utf8Fixture('jquery/jquery-plugin.html')), - [], - 'should not complain when jQuery & a plugin is present.'); - test.deepEqual(lintHtml(utf8Fixture('jquery/old-url.html')), - ['Found what might be an outdated version of jQuery; Bootstrap requires jQuery v1.9.1 or higher'], - 'should complain about old version of jQuery based on URL'); - test.deepEqual(lintHtml(utf8Fixture('jquery/missing.html')), - ['Unable to locate jQuery, which is required for Bootstrap\'s JavaScript plugins to work'], - 'should complain when jQuery appears to be missing.'); - test.deepEqual(lintHtml(utf8Fixture('jquery/and_bs_js_both_missing.html')), - ['Unable to locate jQuery, which is required for Bootstrap\'s JavaScript plugins to work; however, you might not be using Bootstrap\'s JavaScript'], - 'should complain differently when jQuery appears to be missing but Bootstrap\'s JS is also missing.'); - test.done(); - }, - */ - /* - 'bootstrap[.min].js': function (test) { - test.expect(4); - test.deepEqual(lintHtml(utf8Fixture('js/both.html')), - ['Only one copy of Bootstrap\'s JS should be included; currently the webpage includes both bootstrap.js and bootstrap.min.js'], - 'should complain when both bootstrap.js and bootstrap.min.js are included.'); - test.deepEqual(lintHtml(utf8Fixture('js/one.html')), - [], - 'should not complain when only 1 of bootstrap.js and bootstrap.min.js is included.'); - test.deepEqual(lintHtml(utf8Fixture('js/similar.html')), - [], - 'should not complain when only 1 of bootstrap.js and bootstrap.min.js is included but another JS file with "bootstrap" in its name is included.'); - test.deepEqual(lintHtml(utf8Fixture('js/weird.html')), - ['Only one copy of Bootstrap\'s JS should be included; currently the webpage includes both bootstrap.js and bootstrap.min.js'], - 'should complain when both bootstrap.js and bootstrap.min.js are included, even when their URLs use fragments and query strings.'); - test.done(); - }, - */ - /* 'input groups with impermissible kind of form control': function (test) { test.expect(3); test.deepEqual(lintHtml(utf8Fixture('input-group/textarea.html')), @@ -635,25 +596,6 @@ exports.bootlint = { test.done(); }, /* - 'outdated version of Bootstrap': function (test) { - test.expect(5); - test.deepEqual(lintHtml(utf8Fixture('outdated/bootstrap-css.html')), - ['Bootstrap version might be outdated. Latest version is at least 3.4.1 ; saw what appears to be usage of Bootstrap 3.2.0'], - 'should complain about outdated bootstrap.css.'); - test.deepEqual(lintHtml(utf8Fixture('outdated/bootstrap-min-css.html')), - ['Bootstrap version might be outdated. Latest version is at least 3.4.1 ; saw what appears to be usage of Bootstrap 3.2.0'], - 'should complain about outdated bootstrap.min.css.'); - test.deepEqual(lintHtml(utf8Fixture('outdated/bootstrap-js.html')), - ['Bootstrap version might be outdated. Latest version is at least 3.4.1 ; saw what appears to be usage of Bootstrap 3.2.0'], - 'should complain about outdated bootstrap.js.'); - test.deepEqual(lintHtml(utf8Fixture('outdated/bootstrap-min-js.html')), - ['Bootstrap version might be outdated. Latest version is at least 3.4.1 ; saw what appears to be usage of Bootstrap 3.2.0'], - 'should complain about outdated bootstrap.min.js.'); - test.deepEqual(lintHtml(utf8Fixture('outdated/bootstrap-extensions-okay.html')), - [], - 'should not complain about outdated libraries that just have "bootstrap" in their name.'); - test.done(); - }, */ /* 'carousel control target': function (test) { |