This commit is contained in:
Zac Echola 2015-06-16 12:30:39 -05:00
Родитель 78ceccec5e
Коммит 68adc2e013
7 изменённых файлов: 10 добавлений и 10 удалений

Просмотреть файл

@ -666,16 +666,16 @@ exports.bootlint = {
'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.3.4 ; saw what appears to be usage of Bootstrap 3.2.0'],
['Bootstrap version might be outdated. Latest version is at least 3.3.5 ; 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.3.4 ; saw what appears to be usage of Bootstrap 3.2.0'],
['Bootstrap version might be outdated. Latest version is at least 3.3.5 ; 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.3.4 ; saw what appears to be usage of Bootstrap 3.2.0'],
['Bootstrap version might be outdated. Latest version is at least 3.3.5 ; 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.3.4 ; saw what appears to be usage of Bootstrap 3.2.0'],
['Bootstrap version might be outdated. Latest version is at least 3.3.5 ; 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')),
[],

2
test/fixtures/outdated/bootstrap-css.html поставляемый
Просмотреть файл

@ -20,7 +20,7 @@
<body>
<div id="qunit"></div>
<ol id="bootlint">
<li data-lint="Bootstrap version might be outdated. Latest version is at least 3.3.4 ; saw what appears to be usage of Bootstrap 3.2.0"></li>
<li data-lint="Bootstrap version might be outdated. Latest version is at least 3.3.5 ; saw what appears to be usage of Bootstrap 3.2.0"></li>
</ol>
</body>
</html>

2
test/fixtures/outdated/bootstrap-js.html поставляемый
Просмотреть файл

@ -20,7 +20,7 @@
<body>
<div id="qunit"></div>
<ol id="bootlint">
<li data-lint="Bootstrap version might be outdated. Latest version is at least 3.3.4 ; saw what appears to be usage of Bootstrap 3.2.0"></li>
<li data-lint="Bootstrap version might be outdated. Latest version is at least 3.3.5 ; saw what appears to be usage of Bootstrap 3.2.0"></li>
</ol>
</body>
</html>

Просмотреть файл

@ -20,7 +20,7 @@
<body>
<div id="qunit"></div>
<ol id="bootlint">
<li data-lint="Bootstrap version might be outdated. Latest version is at least 3.3.4 ; saw what appears to be usage of Bootstrap 3.2.0"></li>
<li data-lint="Bootstrap version might be outdated. Latest version is at least 3.3.5 ; saw what appears to be usage of Bootstrap 3.2.0"></li>
</ol>
</body>
</html>

Просмотреть файл

@ -20,7 +20,7 @@
<body>
<div id="qunit"></div>
<ol id="bootlint">
<li data-lint="Bootstrap version might be outdated. Latest version is at least 3.3.4 ; saw what appears to be usage of Bootstrap 3.2.0"></li>
<li data-lint="Bootstrap version might be outdated. Latest version is at least 3.3.5 ; saw what appears to be usage of Bootstrap 3.2.0"></li>
</ol>
</body>
</html>

Просмотреть файл

@ -12,7 +12,7 @@
<script src="../../lib/jquery.min.js"></script>
<script>
(function () {
window.$.fn.modal = { Constructor: { VERSION: '3.3.4' } };
window.$.fn.modal = { Constructor: { VERSION: '3.3.5' } };
})();
</script>

Просмотреть файл

@ -24,7 +24,7 @@
<body>
<div id="qunit"></div>
<ol id="bootlint">
<li data-lint="Bootstrap version might be outdated. Latest version is at least 3.3.4 ; saw what appears to be usage of Bootstrap 3.2.0"></li>
<li data-lint="Bootstrap version might be outdated. Latest version is at least 3.3.5 ; saw what appears to be usage of Bootstrap 3.2.0"></li>
</ol>
</body>
</html>