diff --git a/src/bootlint.js b/src/bootlint.js index 9d0246bd..4d3f5fa3 100644 --- a/src/bootlint.js +++ b/src/bootlint.js @@ -427,7 +427,6 @@ var LocationIndex = _location.LocationIndex; } }); */ - /* addLinter('E003', function lintContainers($, reporter) { var notAnyColClass = COL_CLASSES.map(function (colClass) { return ':not(' + colClass + ')'; @@ -448,15 +447,6 @@ var LocationIndex = _location.LocationIndex; reporter('Found one or more `.row`s that were not children of a grid column or descendants of a `.container` or `.container-fluid`', rowsOutsideColumnsAndContainers); } }); - */ - /* - addLinter('E004', function lintNestedContainers($, reporter) { - var nestedContainers = $('.container, .container-fluid').children('.container, .container-fluid'); - if (nestedContainers.length) { - reporter('Containers (`.container` and `.container-fluid`) are not nestable', nestedContainers); - } - }); - */ /* addLinter('E005', function lintRowAndColOnSameElem($, reporter) { var selector = COL_CLASSES.map(function (col) { diff --git a/test/_old_fixtures/containers/nested-fixed-fixed.html b/test/_old_fixtures/containers/nested-fixed-fixed.html deleted file mode 100644 index 2d7842b8..00000000 --- a/test/_old_fixtures/containers/nested-fixed-fixed.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - Test - - - - - - - - - -
-
-
- -
-
    -
  1. -
- - diff --git a/test/_old_fixtures/containers/nested-fixed-fluid.html b/test/_old_fixtures/containers/nested-fixed-fluid.html deleted file mode 100644 index 4c470b1c..00000000 --- a/test/_old_fixtures/containers/nested-fixed-fluid.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - Test - - - - - - - - - -
-
-
- -
-
    -
  1. -
- - diff --git a/test/_old_fixtures/containers/nested-fluid-fixed.html b/test/_old_fixtures/containers/nested-fluid-fixed.html deleted file mode 100644 index 4c470b1c..00000000 --- a/test/_old_fixtures/containers/nested-fluid-fixed.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - Test - - - - - - - - - -
-
-
- -
-
    -
  1. -
- - diff --git a/test/_old_fixtures/containers/nested-fluid-fluid.html b/test/_old_fixtures/containers/nested-fluid-fluid.html deleted file mode 100644 index 5b210d18..00000000 --- a/test/_old_fixtures/containers/nested-fluid-fluid.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - Test - - - - - - - - - -
-
-
- -
-
    -
  1. -
- - diff --git a/test/bootlint_test.js b/test/bootlint_test.js index 7247ce02..87c2edaa 100644 --- a/test/bootlint_test.js +++ b/test/bootlint_test.js @@ -110,7 +110,6 @@ exports.bootlint = { test.done(); }, */ - /* 'rows outside containers': function (test) { test.expect(5); test.deepEqual(lintHtml(utf8Fixture('containers/fixed.html')), @@ -130,25 +129,6 @@ exports.bootlint = { 'should not complain when rows are descendants (but not children) of containers.'); test.done(); }, - */ - /* - 'nested containers': function (test) { - test.expect(4); - test.deepEqual(lintHtml(utf8Fixture('containers/nested-fixed-fixed.html')), - ['Containers (`.container` and `.container-fluid`) are not nestable'], - 'should complain when a container is within a container.'); - test.deepEqual(lintHtml(utf8Fixture('containers/nested-fixed-fluid.html')), - ['Containers (`.container` and `.container-fluid`) are not nestable'], - 'should complain when a container is within a container.'); - test.deepEqual(lintHtml(utf8Fixture('containers/nested-fluid-fluid.html')), - ['Containers (`.container` and `.container-fluid`) are not nestable'], - 'should complain when a container is within a container.'); - test.deepEqual(lintHtml(utf8Fixture('containers/nested-fluid-fixed.html')), - ['Containers (`.container` and `.container-fluid`) are not nestable'], - 'should complain when a container is within a container.'); - test.done(); - }, - */ /* 'viewport meta tag': function (test) { test.expect(2); @@ -173,7 +153,6 @@ exports.bootlint = { test.done(); }, */ - /* 'row and container classes on same element': function (test) { test.expect(2); test.deepEqual(lintHtml(utf8Fixture('containers/fixed-row-same-elem.html')), @@ -184,7 +163,6 @@ exports.bootlint = { 'should complain when .row and .container-fluid are used on the same element.'); test.done(); }, - */ /* 'remote modals': function (test) { test.expect(1); diff --git a/test/_old_fixtures/containers/ancestor.html b/test/fixtures/containers/ancestor.html similarity index 100% rename from test/_old_fixtures/containers/ancestor.html rename to test/fixtures/containers/ancestor.html diff --git a/test/_old_fixtures/containers/columns.html b/test/fixtures/containers/columns.html similarity index 100% rename from test/_old_fixtures/containers/columns.html rename to test/fixtures/containers/columns.html diff --git a/test/_old_fixtures/containers/fixed-row-same-elem.html b/test/fixtures/containers/fixed-row-same-elem.html similarity index 100% rename from test/_old_fixtures/containers/fixed-row-same-elem.html rename to test/fixtures/containers/fixed-row-same-elem.html diff --git a/test/_old_fixtures/containers/fixed.html b/test/fixtures/containers/fixed.html similarity index 100% rename from test/_old_fixtures/containers/fixed.html rename to test/fixtures/containers/fixed.html diff --git a/test/_old_fixtures/containers/fluid-row-same-elem.html b/test/fixtures/containers/fluid-row-same-elem.html similarity index 100% rename from test/_old_fixtures/containers/fluid-row-same-elem.html rename to test/fixtures/containers/fluid-row-same-elem.html diff --git a/test/_old_fixtures/containers/fluid.html b/test/fixtures/containers/fluid.html similarity index 100% rename from test/_old_fixtures/containers/fluid.html rename to test/fixtures/containers/fluid.html diff --git a/test/_old_fixtures/containers/missing.html b/test/fixtures/containers/missing.html similarity index 100% rename from test/_old_fixtures/containers/missing.html rename to test/fixtures/containers/missing.html