From e1223a85ff547b00d0c1f6bbd273789b856a6c07 Mon Sep 17 00:00:00 2001 From: Herst Date: Tue, 18 Sep 2018 09:52:46 +0200 Subject: [PATCH 1/5] Disable most tests in prep for next major version --- .travis.yml | 6 +- test/.eslintrc.json | 4 +- .../close-preceded-by-elem.html | 0 .../close-preceded-by-nothing.html | 0 .../close-preceded-by-text.html | 0 .../missing-alert-dismissible.html | 0 .../alert-dismiss-close/valid.html | 0 test/{fixtures => _old_fixtures}/bs-v2.html | 0 .../buttons-plugin/checkbox-bad.html | 0 .../buttons-plugin/radio-bad.html | 0 .../buttons-plugin/valid.html | 0 .../buttons/btn-correct-element.html | 0 .../buttons/btn-incorrect-element.html | 0 .../buttons/btn-toggle-after-btn.html | 0 .../buttons/btn-toggle.html | 0 .../buttons/button-disabled-class.html | 0 .../buttons/disabled-attribute.html | 0 .../buttons/input-btn-disabled-class.html | 0 .../buttons/with-type.html | 0 .../buttons/without-type.html | 0 .../carousel/controls.html | 0 .../carousel/indicators.html | 0 .../carousel/missing-active-item.html | 0 .../carousel/missing-inner.html | 0 .../carousel/multiple-active-item.html | 0 .../carousel/multiple-inner.html | 0 .../carousel/valid.html | 0 .../charset/missing.html | 0 .../charset/not-utf8.html | Bin .../charset/utf8-meta.html | 0 .../charset/utf8.html | 0 .../checkboxes-radios/checkbox-block-bad.html | 0 .../checkbox-inline-bad-structure.html | 0 .../checkbox-inline-non-label.html | 0 .../checkboxes-radios/radio-block-bad.html | 0 .../radio-inline-bad-structure.html | 0 .../radio-inline-non-label.html | 0 .../checkboxes-radios/valid.html | 0 .../cli/x-ua-compatible-missing.output.txt | 0 .../containers/ancestor.html | 0 .../containers/columns.html | 0 .../containers/fixed-row-same-elem.html | 0 .../containers/fixed.html | 0 .../containers/fluid-row-same-elem.html | 0 .../containers/fluid.html | 0 .../containers/missing.html | 0 .../containers/nested-fixed-fixed.html | 0 .../containers/nested-fixed-fluid.html | 0 .../containers/nested-fluid-fixed.html | 0 .../containers/nested-fluid-fluid.html | 0 test/_old_fixtures/doctype/html4.html | 25 +++ test/_old_fixtures/doctype/html5-legacy.html | 23 +++ .../doctype/html5-normal.html} | 0 test/_old_fixtures/doctype/missing.html | 24 +++ .../feedback/form-control-bad.html | 0 .../feedback/form-control-valid.html | 0 .../feedback/nested-form-control-bad.html | 0 .../form-control/span-invalid.html | 0 .../form-control/type-button.html | 0 .../form-control/type-checkbox.html | 0 .../form-control/type-file.html | 0 .../form-control/type-hidden.html | 0 .../form-control/type-image.html | 0 .../form-control/type-radio.html | 0 .../form-control/type-range.html | 0 .../form-control/type-reset.html | 0 .../form-control/type-submit.html | 0 .../form-control/valid.html | 0 .../form-control/with-type.html | 0 .../form-control/without-type.html | 0 .../form/form-horizontal-group.html | 0 .../form/form-inline-group.html | 0 .../form/nested-form-groups.html | 0 .../form/valid.html | 0 .../glyphicons/missing-glyphicon-class.html | 0 .../glyphicons/on-elem-with-child.html | 0 .../glyphicons/on-elem-with-text.html | 0 .../glyphicons/valid.html | 0 .../grid/col-lg-0.html | 0 .../grid/col-md-0.html | 0 .../grid/col-no-float.html | 0 .../grid/col-sm-0.html | 0 .../grid/col-xs-0.html | 0 .../grid/cols-not-redundant.html | 0 .../grid/cols-outside-row-and-form-group.html | 0 .../grid/cols-redundant.html | 0 .../grid/cols-within-form-group.html | 0 .../grid/cols-within-row.html | 0 .../grid/non-col-row-children.html | 0 .../grid/row-col-same-elem.html | 0 .../grid/row-no-float.html | 0 .../grid/script-child-of-row.html | 0 .../grid/spacer-col/blank-text.html | 0 .../grid/spacer-col/child-with-text.html | 0 .../grid/spacer-col/child-without-text.html | 0 .../grid/spacer-col/col-element.html | 0 .../grid/spacer-col/last-child.html | 0 .../spacer-col/multiple-reversed-order.html | 0 .../grid/spacer-col/no-child-no-text.html | 0 .../grid/spacer-col/non-blank-text.html | 0 .../grid/spacer-col/tricky-classes.html | 0 .../grid/spacer-col/void-elements.html | 0 .../images/img-responsive-bad.html | 0 .../images/img-responsive-valid.html | 0 .../input-group/missing-form-control.html | 0 .../missing-input-group-addon.html | 0 .../missing-input-group-sizing.html | 0 .../input-group/mixed-with-form-group.html | 0 .../input-group/mixed-with-grid-col.html | 0 .../input-group/multiple-add-on-left.html | 0 .../input-group/multiple-add-on-right.html | 0 .../input-group/multiple-btn-add-on-left.html | 0 .../multiple-btn-add-on-right.html | 0 .../input-group/multiple-form-controls.html | 0 .../multiple-mixed-add-on-left.html | 0 .../input-group/select.html | 0 .../input-group/textarea.html | 0 .../input-group/valid.html | 0 .../jquery/and_bs_js_both_missing.html | 0 .../jquery/custom.html | 0 .../jquery/jquery-plugin.html | 0 .../jquery/missing.html | 0 .../jquery/old-attr.html | 0 .../jquery/old-url.html | 0 .../jquery}/present.html | 0 test/{fixtures => _old_fixtures}/js/both.html | 0 test/{fixtures => _old_fixtures}/js/one.html | 0 .../js/similar.html | 0 .../{fixtures => _old_fixtures}/js/weird.html | 0 .../media/deprecated-pull-classes.html | 0 .../media/media-classes.html | 0 .../media/media-pull-on-media.html | 0 .../media/misplaced-media-left.html | 0 .../media/misplaced-media-right.html | 0 .../modal/body-outside-content.html | 0 .../modal/content-outside-dialog.html | 0 .../modal/dialog-outside-modal.html | 0 .../modal/footer-outside-content.html | 0 .../modal/header-outside-content.html | 0 .../modal/missing-role-dialog.html | 0 .../modal/missing-role-document.html | 0 .../modal/remote.html | 0 .../modal/tabindex-missing.html | 0 .../modal/title-outside-header.html | 0 .../modal/valid.html | 0 .../modal/with-hide.html | 0 .../modal/within-navbar.html | 0 .../modal/within-table.html | 0 .../navbar/btn-bad.html | 0 .../navbar/navbar-btn-bad.html | 0 .../navbar/navbar-container.html | 0 .../navbar/navbar-left-bad.html | 0 .../navbar/navbar-left-right-on-navbar.html | 0 .../navbar/navbar-left-right-valid.html | 0 .../navbar/navbar-right-bad.html | 0 .../outdated/bootstrap-css.html | 0 .../outdated/bootstrap-extensions-okay.html | 0 .../outdated/bootstrap-js.html | 0 .../outdated/bootstrap-min-css.html | 0 .../outdated/bootstrap-min-js.html | 0 .../js-version-not-in-url-current.html | 0 .../js-version-not-in-url-outdated.html | 0 .../panels/panel-body-missing-parent.html | 0 .../panels/panel-footer-missing-parent.html | 0 .../panels/panel-heading-missing-parent.html | 0 .../panels/panel-title-missing-parent.html | 0 .../panels/panels.html | 0 .../table/responsive-incorrect.html | 0 .../table/responsive-valid.html | 0 .../tooltips/in-btn-groups.html | 0 .../tooltips/on-disabled-elems.html | 0 .../version-4/bootstrap-css.html | 0 .../version-4/bootstrap-extensions-okay.html | 0 .../version-4/bootstrap-js.html | 0 .../version-4/bootstrap-min-css.html | 0 .../version-4/bootstrap-min-js.html | 0 .../js-version-not-in-url-4.0.0.html | 0 .../viewport/missing.html | 0 .../viewport}/present.html | 0 .../x-ua-compatible/lowercase.html | 0 .../x-ua-compatible/missing.html | 0 .../x-ua-compatible/present.html | 23 +++ test/bootlint_test.js | 144 +++++++++++++++--- 183 files changed, 221 insertions(+), 28 deletions(-) rename test/{fixtures => _old_fixtures}/alert-dismiss-close/close-preceded-by-elem.html (100%) rename test/{fixtures => _old_fixtures}/alert-dismiss-close/close-preceded-by-nothing.html (100%) rename test/{fixtures => _old_fixtures}/alert-dismiss-close/close-preceded-by-text.html (100%) rename test/{fixtures => _old_fixtures}/alert-dismiss-close/missing-alert-dismissible.html (100%) rename test/{fixtures => _old_fixtures}/alert-dismiss-close/valid.html (100%) rename test/{fixtures => _old_fixtures}/bs-v2.html (100%) rename test/{fixtures => _old_fixtures}/buttons-plugin/checkbox-bad.html (100%) rename test/{fixtures => _old_fixtures}/buttons-plugin/radio-bad.html (100%) rename test/{fixtures => _old_fixtures}/buttons-plugin/valid.html (100%) rename test/{fixtures => _old_fixtures}/buttons/btn-correct-element.html (100%) rename test/{fixtures => _old_fixtures}/buttons/btn-incorrect-element.html (100%) rename test/{fixtures => _old_fixtures}/buttons/btn-toggle-after-btn.html (100%) rename test/{fixtures => _old_fixtures}/buttons/btn-toggle.html (100%) rename test/{fixtures => _old_fixtures}/buttons/button-disabled-class.html (100%) rename test/{fixtures => _old_fixtures}/buttons/disabled-attribute.html (100%) rename test/{fixtures => _old_fixtures}/buttons/input-btn-disabled-class.html (100%) rename test/{fixtures => _old_fixtures}/buttons/with-type.html (100%) rename test/{fixtures => _old_fixtures}/buttons/without-type.html (100%) rename test/{fixtures => _old_fixtures}/carousel/controls.html (100%) rename test/{fixtures => _old_fixtures}/carousel/indicators.html (100%) rename test/{fixtures => _old_fixtures}/carousel/missing-active-item.html (100%) rename test/{fixtures => _old_fixtures}/carousel/missing-inner.html (100%) rename test/{fixtures => _old_fixtures}/carousel/multiple-active-item.html (100%) rename test/{fixtures => _old_fixtures}/carousel/multiple-inner.html (100%) rename test/{fixtures => _old_fixtures}/carousel/valid.html (100%) rename test/{fixtures => _old_fixtures}/charset/missing.html (100%) rename test/{fixtures => _old_fixtures}/charset/not-utf8.html (100%) rename test/{fixtures => _old_fixtures}/charset/utf8-meta.html (100%) rename test/{fixtures => _old_fixtures}/charset/utf8.html (100%) rename test/{fixtures => _old_fixtures}/checkboxes-radios/checkbox-block-bad.html (100%) rename test/{fixtures => _old_fixtures}/checkboxes-radios/checkbox-inline-bad-structure.html (100%) rename test/{fixtures => _old_fixtures}/checkboxes-radios/checkbox-inline-non-label.html (100%) rename test/{fixtures => _old_fixtures}/checkboxes-radios/radio-block-bad.html (100%) rename test/{fixtures => _old_fixtures}/checkboxes-radios/radio-inline-bad-structure.html (100%) rename test/{fixtures => _old_fixtures}/checkboxes-radios/radio-inline-non-label.html (100%) rename test/{fixtures => _old_fixtures}/checkboxes-radios/valid.html (100%) rename test/{fixtures => _old_fixtures}/cli/x-ua-compatible-missing.output.txt (100%) rename test/{fixtures => _old_fixtures}/containers/ancestor.html (100%) rename test/{fixtures => _old_fixtures}/containers/columns.html (100%) rename test/{fixtures => _old_fixtures}/containers/fixed-row-same-elem.html (100%) rename test/{fixtures => _old_fixtures}/containers/fixed.html (100%) rename test/{fixtures => _old_fixtures}/containers/fluid-row-same-elem.html (100%) rename test/{fixtures => _old_fixtures}/containers/fluid.html (100%) rename test/{fixtures => _old_fixtures}/containers/missing.html (100%) rename test/{fixtures => _old_fixtures}/containers/nested-fixed-fixed.html (100%) rename test/{fixtures => _old_fixtures}/containers/nested-fixed-fluid.html (100%) rename test/{fixtures => _old_fixtures}/containers/nested-fluid-fixed.html (100%) rename test/{fixtures => _old_fixtures}/containers/nested-fluid-fluid.html (100%) create mode 100644 test/_old_fixtures/doctype/html4.html create mode 100644 test/_old_fixtures/doctype/html5-legacy.html rename test/{fixtures/jquery/present.html => _old_fixtures/doctype/html5-normal.html} (100%) create mode 100644 test/_old_fixtures/doctype/missing.html rename test/{fixtures => _old_fixtures}/feedback/form-control-bad.html (100%) rename test/{fixtures => _old_fixtures}/feedback/form-control-valid.html (100%) rename test/{fixtures => _old_fixtures}/feedback/nested-form-control-bad.html (100%) rename test/{fixtures => _old_fixtures}/form-control/span-invalid.html (100%) rename test/{fixtures => _old_fixtures}/form-control/type-button.html (100%) rename test/{fixtures => _old_fixtures}/form-control/type-checkbox.html (100%) rename test/{fixtures => _old_fixtures}/form-control/type-file.html (100%) rename test/{fixtures => _old_fixtures}/form-control/type-hidden.html (100%) rename test/{fixtures => _old_fixtures}/form-control/type-image.html (100%) rename test/{fixtures => _old_fixtures}/form-control/type-radio.html (100%) rename test/{fixtures => _old_fixtures}/form-control/type-range.html (100%) rename test/{fixtures => _old_fixtures}/form-control/type-reset.html (100%) rename test/{fixtures => _old_fixtures}/form-control/type-submit.html (100%) rename test/{fixtures => _old_fixtures}/form-control/valid.html (100%) rename test/{fixtures => _old_fixtures}/form-control/with-type.html (100%) rename test/{fixtures => _old_fixtures}/form-control/without-type.html (100%) rename test/{fixtures => _old_fixtures}/form/form-horizontal-group.html (100%) rename test/{fixtures => _old_fixtures}/form/form-inline-group.html (100%) rename test/{fixtures => _old_fixtures}/form/nested-form-groups.html (100%) rename test/{fixtures => _old_fixtures}/form/valid.html (100%) rename test/{fixtures => _old_fixtures}/glyphicons/missing-glyphicon-class.html (100%) rename test/{fixtures => _old_fixtures}/glyphicons/on-elem-with-child.html (100%) rename test/{fixtures => _old_fixtures}/glyphicons/on-elem-with-text.html (100%) rename test/{fixtures => _old_fixtures}/glyphicons/valid.html (100%) rename test/{fixtures => _old_fixtures}/grid/col-lg-0.html (100%) rename test/{fixtures => _old_fixtures}/grid/col-md-0.html (100%) rename test/{fixtures => _old_fixtures}/grid/col-no-float.html (100%) rename test/{fixtures => _old_fixtures}/grid/col-sm-0.html (100%) rename test/{fixtures => _old_fixtures}/grid/col-xs-0.html (100%) rename test/{fixtures => _old_fixtures}/grid/cols-not-redundant.html (100%) rename test/{fixtures => _old_fixtures}/grid/cols-outside-row-and-form-group.html (100%) rename test/{fixtures => _old_fixtures}/grid/cols-redundant.html (100%) rename test/{fixtures => _old_fixtures}/grid/cols-within-form-group.html (100%) rename test/{fixtures => _old_fixtures}/grid/cols-within-row.html (100%) rename test/{fixtures => _old_fixtures}/grid/non-col-row-children.html (100%) rename test/{fixtures => _old_fixtures}/grid/row-col-same-elem.html (100%) rename test/{fixtures => _old_fixtures}/grid/row-no-float.html (100%) rename test/{fixtures => _old_fixtures}/grid/script-child-of-row.html (100%) rename test/{fixtures => _old_fixtures}/grid/spacer-col/blank-text.html (100%) rename test/{fixtures => _old_fixtures}/grid/spacer-col/child-with-text.html (100%) rename test/{fixtures => _old_fixtures}/grid/spacer-col/child-without-text.html (100%) rename test/{fixtures => _old_fixtures}/grid/spacer-col/col-element.html (100%) rename test/{fixtures => _old_fixtures}/grid/spacer-col/last-child.html (100%) rename test/{fixtures => _old_fixtures}/grid/spacer-col/multiple-reversed-order.html (100%) rename test/{fixtures => _old_fixtures}/grid/spacer-col/no-child-no-text.html (100%) rename test/{fixtures => _old_fixtures}/grid/spacer-col/non-blank-text.html (100%) rename test/{fixtures => _old_fixtures}/grid/spacer-col/tricky-classes.html (100%) rename test/{fixtures => _old_fixtures}/grid/spacer-col/void-elements.html (100%) rename test/{fixtures => _old_fixtures}/images/img-responsive-bad.html (100%) rename test/{fixtures => _old_fixtures}/images/img-responsive-valid.html (100%) rename test/{fixtures => _old_fixtures}/input-group/missing-form-control.html (100%) rename test/{fixtures => _old_fixtures}/input-group/missing-input-group-addon.html (100%) rename test/{fixtures => _old_fixtures}/input-group/missing-input-group-sizing.html (100%) rename test/{fixtures => _old_fixtures}/input-group/mixed-with-form-group.html (100%) rename test/{fixtures => _old_fixtures}/input-group/mixed-with-grid-col.html (100%) rename test/{fixtures => _old_fixtures}/input-group/multiple-add-on-left.html (100%) rename test/{fixtures => _old_fixtures}/input-group/multiple-add-on-right.html (100%) rename test/{fixtures => _old_fixtures}/input-group/multiple-btn-add-on-left.html (100%) rename test/{fixtures => _old_fixtures}/input-group/multiple-btn-add-on-right.html (100%) rename test/{fixtures => _old_fixtures}/input-group/multiple-form-controls.html (100%) rename test/{fixtures => _old_fixtures}/input-group/multiple-mixed-add-on-left.html (100%) rename test/{fixtures => _old_fixtures}/input-group/select.html (100%) rename test/{fixtures => _old_fixtures}/input-group/textarea.html (100%) rename test/{fixtures => _old_fixtures}/input-group/valid.html (100%) rename test/{fixtures => _old_fixtures}/jquery/and_bs_js_both_missing.html (100%) rename test/{fixtures => _old_fixtures}/jquery/custom.html (100%) rename test/{fixtures => _old_fixtures}/jquery/jquery-plugin.html (100%) rename test/{fixtures => _old_fixtures}/jquery/missing.html (100%) rename test/{fixtures => _old_fixtures}/jquery/old-attr.html (100%) rename test/{fixtures => _old_fixtures}/jquery/old-url.html (100%) rename test/{fixtures/viewport => _old_fixtures/jquery}/present.html (100%) rename test/{fixtures => _old_fixtures}/js/both.html (100%) rename test/{fixtures => _old_fixtures}/js/one.html (100%) rename test/{fixtures => _old_fixtures}/js/similar.html (100%) rename test/{fixtures => _old_fixtures}/js/weird.html (100%) rename test/{fixtures => _old_fixtures}/media/deprecated-pull-classes.html (100%) rename test/{fixtures => _old_fixtures}/media/media-classes.html (100%) rename test/{fixtures => _old_fixtures}/media/media-pull-on-media.html (100%) rename test/{fixtures => _old_fixtures}/media/misplaced-media-left.html (100%) rename test/{fixtures => _old_fixtures}/media/misplaced-media-right.html (100%) rename test/{fixtures => _old_fixtures}/modal/body-outside-content.html (100%) rename test/{fixtures => _old_fixtures}/modal/content-outside-dialog.html (100%) rename test/{fixtures => _old_fixtures}/modal/dialog-outside-modal.html (100%) rename test/{fixtures => _old_fixtures}/modal/footer-outside-content.html (100%) rename test/{fixtures => _old_fixtures}/modal/header-outside-content.html (100%) rename test/{fixtures => _old_fixtures}/modal/missing-role-dialog.html (100%) rename test/{fixtures => _old_fixtures}/modal/missing-role-document.html (100%) rename test/{fixtures => _old_fixtures}/modal/remote.html (100%) rename test/{fixtures => _old_fixtures}/modal/tabindex-missing.html (100%) rename test/{fixtures => _old_fixtures}/modal/title-outside-header.html (100%) rename test/{fixtures => _old_fixtures}/modal/valid.html (100%) rename test/{fixtures => _old_fixtures}/modal/with-hide.html (100%) rename test/{fixtures => _old_fixtures}/modal/within-navbar.html (100%) rename test/{fixtures => _old_fixtures}/modal/within-table.html (100%) rename test/{fixtures => _old_fixtures}/navbar/btn-bad.html (100%) rename test/{fixtures => _old_fixtures}/navbar/navbar-btn-bad.html (100%) rename test/{fixtures => _old_fixtures}/navbar/navbar-container.html (100%) rename test/{fixtures => _old_fixtures}/navbar/navbar-left-bad.html (100%) rename test/{fixtures => _old_fixtures}/navbar/navbar-left-right-on-navbar.html (100%) rename test/{fixtures => _old_fixtures}/navbar/navbar-left-right-valid.html (100%) rename test/{fixtures => _old_fixtures}/navbar/navbar-right-bad.html (100%) rename test/{fixtures => _old_fixtures}/outdated/bootstrap-css.html (100%) rename test/{fixtures => _old_fixtures}/outdated/bootstrap-extensions-okay.html (100%) rename test/{fixtures => _old_fixtures}/outdated/bootstrap-js.html (100%) rename test/{fixtures => _old_fixtures}/outdated/bootstrap-min-css.html (100%) rename test/{fixtures => _old_fixtures}/outdated/bootstrap-min-js.html (100%) rename test/{fixtures => _old_fixtures}/outdated/js-version-not-in-url-current.html (100%) rename test/{fixtures => _old_fixtures}/outdated/js-version-not-in-url-outdated.html (100%) rename test/{fixtures => _old_fixtures}/panels/panel-body-missing-parent.html (100%) rename test/{fixtures => _old_fixtures}/panels/panel-footer-missing-parent.html (100%) rename test/{fixtures => _old_fixtures}/panels/panel-heading-missing-parent.html (100%) rename test/{fixtures => _old_fixtures}/panels/panel-title-missing-parent.html (100%) rename test/{fixtures => _old_fixtures}/panels/panels.html (100%) rename test/{fixtures => _old_fixtures}/table/responsive-incorrect.html (100%) rename test/{fixtures => _old_fixtures}/table/responsive-valid.html (100%) rename test/{fixtures => _old_fixtures}/tooltips/in-btn-groups.html (100%) rename test/{fixtures => _old_fixtures}/tooltips/on-disabled-elems.html (100%) rename test/{fixtures => _old_fixtures}/version-4/bootstrap-css.html (100%) rename test/{fixtures => _old_fixtures}/version-4/bootstrap-extensions-okay.html (100%) rename test/{fixtures => _old_fixtures}/version-4/bootstrap-js.html (100%) rename test/{fixtures => _old_fixtures}/version-4/bootstrap-min-css.html (100%) rename test/{fixtures => _old_fixtures}/version-4/bootstrap-min-js.html (100%) rename test/{fixtures => _old_fixtures}/version-4/js-version-not-in-url-4.0.0.html (100%) rename test/{fixtures => _old_fixtures}/viewport/missing.html (100%) rename test/{fixtures/x-ua-compatible => _old_fixtures/viewport}/present.html (100%) rename test/{fixtures => _old_fixtures}/x-ua-compatible/lowercase.html (100%) rename test/{fixtures => _old_fixtures}/x-ua-compatible/missing.html (100%) create mode 100644 test/_old_fixtures/x-ua-compatible/present.html diff --git a/.travis.yml b/.travis.yml index 7645511a..3c39f332 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,9 +13,9 @@ before_script: - pushd bootstrap && bundle exec jekyll build && popd script: - if [ "$TRAVIS_NODE_VERSION" = "10" ]; then npm run nyc -- npm run test && npm run qunit; else npm run test; fi || travis_terminate 1 - - node ./src/cli-main.js --disable W003,W005 "bootstrap/_gh_pages/**/index.html" || travis_terminate 1 - - node ./src/cli-main.js test/fixtures/x-ua-compatible/missing.html &> x-ua-compatible-missing.output.actual.txt || true - - diff test/fixtures/cli/x-ua-compatible-missing.output.txt x-ua-compatible-missing.output.actual.txt + # - node ./src/cli-main.js --disable W003,W005 "bootstrap/_gh_pages/**/index.html" || travis_terminate 1 + # - node ./src/cli-main.js test/fixtures/x-ua-compatible/missing.html &> x-ua-compatible-missing.output.actual.txt || true + # - diff test/fixtures/cli/x-ua-compatible-missing.output.txt x-ua-compatible-missing.output.actual.txt after_success: - if [ "$TRAVIS_NODE_VERSION" = "10" ]; then npm run coveralls; fi matrix: diff --git a/test/.eslintrc.json b/test/.eslintrc.json index 089c9d08..7fa9ff29 100644 --- a/test/.eslintrc.json +++ b/test/.eslintrc.json @@ -1,6 +1,8 @@ { "extends": "../.eslintrc.json", "rules": { - "no-process-env": "off" + "no-process-env": "off", + "comma-dangle": "off", + "no-unused-vars": "off" } } diff --git a/test/fixtures/alert-dismiss-close/close-preceded-by-elem.html b/test/_old_fixtures/alert-dismiss-close/close-preceded-by-elem.html similarity index 100% rename from test/fixtures/alert-dismiss-close/close-preceded-by-elem.html rename to test/_old_fixtures/alert-dismiss-close/close-preceded-by-elem.html diff --git a/test/fixtures/alert-dismiss-close/close-preceded-by-nothing.html b/test/_old_fixtures/alert-dismiss-close/close-preceded-by-nothing.html similarity index 100% rename from test/fixtures/alert-dismiss-close/close-preceded-by-nothing.html rename to test/_old_fixtures/alert-dismiss-close/close-preceded-by-nothing.html diff --git a/test/fixtures/alert-dismiss-close/close-preceded-by-text.html b/test/_old_fixtures/alert-dismiss-close/close-preceded-by-text.html similarity index 100% rename from test/fixtures/alert-dismiss-close/close-preceded-by-text.html rename to test/_old_fixtures/alert-dismiss-close/close-preceded-by-text.html diff --git a/test/fixtures/alert-dismiss-close/missing-alert-dismissible.html b/test/_old_fixtures/alert-dismiss-close/missing-alert-dismissible.html similarity index 100% rename from test/fixtures/alert-dismiss-close/missing-alert-dismissible.html rename to test/_old_fixtures/alert-dismiss-close/missing-alert-dismissible.html diff --git a/test/fixtures/alert-dismiss-close/valid.html b/test/_old_fixtures/alert-dismiss-close/valid.html similarity index 100% rename from test/fixtures/alert-dismiss-close/valid.html rename to test/_old_fixtures/alert-dismiss-close/valid.html diff --git a/test/fixtures/bs-v2.html b/test/_old_fixtures/bs-v2.html similarity index 100% rename from test/fixtures/bs-v2.html rename to test/_old_fixtures/bs-v2.html diff --git a/test/fixtures/buttons-plugin/checkbox-bad.html b/test/_old_fixtures/buttons-plugin/checkbox-bad.html similarity index 100% rename from test/fixtures/buttons-plugin/checkbox-bad.html rename to test/_old_fixtures/buttons-plugin/checkbox-bad.html diff --git a/test/fixtures/buttons-plugin/radio-bad.html b/test/_old_fixtures/buttons-plugin/radio-bad.html similarity index 100% rename from test/fixtures/buttons-plugin/radio-bad.html rename to test/_old_fixtures/buttons-plugin/radio-bad.html diff --git a/test/fixtures/buttons-plugin/valid.html b/test/_old_fixtures/buttons-plugin/valid.html similarity index 100% rename from test/fixtures/buttons-plugin/valid.html rename to test/_old_fixtures/buttons-plugin/valid.html diff --git a/test/fixtures/buttons/btn-correct-element.html b/test/_old_fixtures/buttons/btn-correct-element.html similarity index 100% rename from test/fixtures/buttons/btn-correct-element.html rename to test/_old_fixtures/buttons/btn-correct-element.html diff --git a/test/fixtures/buttons/btn-incorrect-element.html b/test/_old_fixtures/buttons/btn-incorrect-element.html similarity index 100% rename from test/fixtures/buttons/btn-incorrect-element.html rename to test/_old_fixtures/buttons/btn-incorrect-element.html diff --git a/test/fixtures/buttons/btn-toggle-after-btn.html b/test/_old_fixtures/buttons/btn-toggle-after-btn.html similarity index 100% rename from test/fixtures/buttons/btn-toggle-after-btn.html rename to test/_old_fixtures/buttons/btn-toggle-after-btn.html diff --git a/test/fixtures/buttons/btn-toggle.html b/test/_old_fixtures/buttons/btn-toggle.html similarity index 100% rename from test/fixtures/buttons/btn-toggle.html rename to test/_old_fixtures/buttons/btn-toggle.html diff --git a/test/fixtures/buttons/button-disabled-class.html b/test/_old_fixtures/buttons/button-disabled-class.html similarity index 100% rename from test/fixtures/buttons/button-disabled-class.html rename to test/_old_fixtures/buttons/button-disabled-class.html diff --git a/test/fixtures/buttons/disabled-attribute.html b/test/_old_fixtures/buttons/disabled-attribute.html similarity index 100% rename from test/fixtures/buttons/disabled-attribute.html rename to test/_old_fixtures/buttons/disabled-attribute.html diff --git a/test/fixtures/buttons/input-btn-disabled-class.html b/test/_old_fixtures/buttons/input-btn-disabled-class.html similarity index 100% rename from test/fixtures/buttons/input-btn-disabled-class.html rename to test/_old_fixtures/buttons/input-btn-disabled-class.html diff --git a/test/fixtures/buttons/with-type.html b/test/_old_fixtures/buttons/with-type.html similarity index 100% rename from test/fixtures/buttons/with-type.html rename to test/_old_fixtures/buttons/with-type.html diff --git a/test/fixtures/buttons/without-type.html b/test/_old_fixtures/buttons/without-type.html similarity index 100% rename from test/fixtures/buttons/without-type.html rename to test/_old_fixtures/buttons/without-type.html diff --git a/test/fixtures/carousel/controls.html b/test/_old_fixtures/carousel/controls.html similarity index 100% rename from test/fixtures/carousel/controls.html rename to test/_old_fixtures/carousel/controls.html diff --git a/test/fixtures/carousel/indicators.html b/test/_old_fixtures/carousel/indicators.html similarity index 100% rename from test/fixtures/carousel/indicators.html rename to test/_old_fixtures/carousel/indicators.html diff --git a/test/fixtures/carousel/missing-active-item.html b/test/_old_fixtures/carousel/missing-active-item.html similarity index 100% rename from test/fixtures/carousel/missing-active-item.html rename to test/_old_fixtures/carousel/missing-active-item.html diff --git a/test/fixtures/carousel/missing-inner.html b/test/_old_fixtures/carousel/missing-inner.html similarity index 100% rename from test/fixtures/carousel/missing-inner.html rename to test/_old_fixtures/carousel/missing-inner.html diff --git a/test/fixtures/carousel/multiple-active-item.html b/test/_old_fixtures/carousel/multiple-active-item.html similarity index 100% rename from test/fixtures/carousel/multiple-active-item.html rename to test/_old_fixtures/carousel/multiple-active-item.html diff --git a/test/fixtures/carousel/multiple-inner.html b/test/_old_fixtures/carousel/multiple-inner.html similarity index 100% rename from test/fixtures/carousel/multiple-inner.html rename to test/_old_fixtures/carousel/multiple-inner.html diff --git a/test/fixtures/carousel/valid.html b/test/_old_fixtures/carousel/valid.html similarity index 100% rename from test/fixtures/carousel/valid.html rename to test/_old_fixtures/carousel/valid.html diff --git a/test/fixtures/charset/missing.html b/test/_old_fixtures/charset/missing.html similarity index 100% rename from test/fixtures/charset/missing.html rename to test/_old_fixtures/charset/missing.html diff --git a/test/fixtures/charset/not-utf8.html b/test/_old_fixtures/charset/not-utf8.html similarity index 100% rename from test/fixtures/charset/not-utf8.html rename to test/_old_fixtures/charset/not-utf8.html diff --git a/test/fixtures/charset/utf8-meta.html b/test/_old_fixtures/charset/utf8-meta.html similarity index 100% rename from test/fixtures/charset/utf8-meta.html rename to test/_old_fixtures/charset/utf8-meta.html diff --git a/test/fixtures/charset/utf8.html b/test/_old_fixtures/charset/utf8.html similarity index 100% rename from test/fixtures/charset/utf8.html rename to test/_old_fixtures/charset/utf8.html diff --git a/test/fixtures/checkboxes-radios/checkbox-block-bad.html b/test/_old_fixtures/checkboxes-radios/checkbox-block-bad.html similarity index 100% rename from test/fixtures/checkboxes-radios/checkbox-block-bad.html rename to test/_old_fixtures/checkboxes-radios/checkbox-block-bad.html diff --git a/test/fixtures/checkboxes-radios/checkbox-inline-bad-structure.html b/test/_old_fixtures/checkboxes-radios/checkbox-inline-bad-structure.html similarity index 100% rename from test/fixtures/checkboxes-radios/checkbox-inline-bad-structure.html rename to test/_old_fixtures/checkboxes-radios/checkbox-inline-bad-structure.html diff --git a/test/fixtures/checkboxes-radios/checkbox-inline-non-label.html b/test/_old_fixtures/checkboxes-radios/checkbox-inline-non-label.html similarity index 100% rename from test/fixtures/checkboxes-radios/checkbox-inline-non-label.html rename to test/_old_fixtures/checkboxes-radios/checkbox-inline-non-label.html diff --git a/test/fixtures/checkboxes-radios/radio-block-bad.html b/test/_old_fixtures/checkboxes-radios/radio-block-bad.html similarity index 100% rename from test/fixtures/checkboxes-radios/radio-block-bad.html rename to test/_old_fixtures/checkboxes-radios/radio-block-bad.html diff --git a/test/fixtures/checkboxes-radios/radio-inline-bad-structure.html b/test/_old_fixtures/checkboxes-radios/radio-inline-bad-structure.html similarity index 100% rename from test/fixtures/checkboxes-radios/radio-inline-bad-structure.html rename to test/_old_fixtures/checkboxes-radios/radio-inline-bad-structure.html diff --git a/test/fixtures/checkboxes-radios/radio-inline-non-label.html b/test/_old_fixtures/checkboxes-radios/radio-inline-non-label.html similarity index 100% rename from test/fixtures/checkboxes-radios/radio-inline-non-label.html rename to test/_old_fixtures/checkboxes-radios/radio-inline-non-label.html diff --git a/test/fixtures/checkboxes-radios/valid.html b/test/_old_fixtures/checkboxes-radios/valid.html similarity index 100% rename from test/fixtures/checkboxes-radios/valid.html rename to test/_old_fixtures/checkboxes-radios/valid.html diff --git a/test/fixtures/cli/x-ua-compatible-missing.output.txt b/test/_old_fixtures/cli/x-ua-compatible-missing.output.txt similarity index 100% rename from test/fixtures/cli/x-ua-compatible-missing.output.txt rename to test/_old_fixtures/cli/x-ua-compatible-missing.output.txt diff --git a/test/fixtures/containers/ancestor.html b/test/_old_fixtures/containers/ancestor.html similarity index 100% rename from test/fixtures/containers/ancestor.html rename to test/_old_fixtures/containers/ancestor.html diff --git a/test/fixtures/containers/columns.html b/test/_old_fixtures/containers/columns.html similarity index 100% rename from test/fixtures/containers/columns.html rename to test/_old_fixtures/containers/columns.html diff --git a/test/fixtures/containers/fixed-row-same-elem.html b/test/_old_fixtures/containers/fixed-row-same-elem.html similarity index 100% rename from test/fixtures/containers/fixed-row-same-elem.html rename to test/_old_fixtures/containers/fixed-row-same-elem.html diff --git a/test/fixtures/containers/fixed.html b/test/_old_fixtures/containers/fixed.html similarity index 100% rename from test/fixtures/containers/fixed.html rename to test/_old_fixtures/containers/fixed.html diff --git a/test/fixtures/containers/fluid-row-same-elem.html b/test/_old_fixtures/containers/fluid-row-same-elem.html similarity index 100% rename from test/fixtures/containers/fluid-row-same-elem.html rename to test/_old_fixtures/containers/fluid-row-same-elem.html diff --git a/test/fixtures/containers/fluid.html b/test/_old_fixtures/containers/fluid.html similarity index 100% rename from test/fixtures/containers/fluid.html rename to test/_old_fixtures/containers/fluid.html diff --git a/test/fixtures/containers/missing.html b/test/_old_fixtures/containers/missing.html similarity index 100% rename from test/fixtures/containers/missing.html rename to test/_old_fixtures/containers/missing.html diff --git a/test/fixtures/containers/nested-fixed-fixed.html b/test/_old_fixtures/containers/nested-fixed-fixed.html similarity index 100% rename from test/fixtures/containers/nested-fixed-fixed.html rename to test/_old_fixtures/containers/nested-fixed-fixed.html diff --git a/test/fixtures/containers/nested-fixed-fluid.html b/test/_old_fixtures/containers/nested-fixed-fluid.html similarity index 100% rename from test/fixtures/containers/nested-fixed-fluid.html rename to test/_old_fixtures/containers/nested-fixed-fluid.html diff --git a/test/fixtures/containers/nested-fluid-fixed.html b/test/_old_fixtures/containers/nested-fluid-fixed.html similarity index 100% rename from test/fixtures/containers/nested-fluid-fixed.html rename to test/_old_fixtures/containers/nested-fluid-fixed.html diff --git a/test/fixtures/containers/nested-fluid-fluid.html b/test/_old_fixtures/containers/nested-fluid-fluid.html similarity index 100% rename from test/fixtures/containers/nested-fluid-fluid.html rename to test/_old_fixtures/containers/nested-fluid-fluid.html diff --git a/test/_old_fixtures/doctype/html4.html b/test/_old_fixtures/doctype/html4.html new file mode 100644 index 00000000..c9db714d --- /dev/null +++ b/test/_old_fixtures/doctype/html4.html @@ -0,0 +1,25 @@ + + + + + + + Test + + + + + + + + + +
+
    +
  1. +
+ + diff --git a/test/_old_fixtures/doctype/html5-legacy.html b/test/_old_fixtures/doctype/html5-legacy.html new file mode 100644 index 00000000..691b4d45 --- /dev/null +++ b/test/_old_fixtures/doctype/html5-legacy.html @@ -0,0 +1,23 @@ + + + + + + + Test + + + + + + + + + +
+
    + + diff --git a/test/fixtures/jquery/present.html b/test/_old_fixtures/doctype/html5-normal.html similarity index 100% rename from test/fixtures/jquery/present.html rename to test/_old_fixtures/doctype/html5-normal.html diff --git a/test/_old_fixtures/doctype/missing.html b/test/_old_fixtures/doctype/missing.html new file mode 100644 index 00000000..e703294c --- /dev/null +++ b/test/_old_fixtures/doctype/missing.html @@ -0,0 +1,24 @@ + + + + + + Test + + + + + + + + + +
    +
      +
    1. +
    + + diff --git a/test/fixtures/feedback/form-control-bad.html b/test/_old_fixtures/feedback/form-control-bad.html similarity index 100% rename from test/fixtures/feedback/form-control-bad.html rename to test/_old_fixtures/feedback/form-control-bad.html diff --git a/test/fixtures/feedback/form-control-valid.html b/test/_old_fixtures/feedback/form-control-valid.html similarity index 100% rename from test/fixtures/feedback/form-control-valid.html rename to test/_old_fixtures/feedback/form-control-valid.html diff --git a/test/fixtures/feedback/nested-form-control-bad.html b/test/_old_fixtures/feedback/nested-form-control-bad.html similarity index 100% rename from test/fixtures/feedback/nested-form-control-bad.html rename to test/_old_fixtures/feedback/nested-form-control-bad.html diff --git a/test/fixtures/form-control/span-invalid.html b/test/_old_fixtures/form-control/span-invalid.html similarity index 100% rename from test/fixtures/form-control/span-invalid.html rename to test/_old_fixtures/form-control/span-invalid.html diff --git a/test/fixtures/form-control/type-button.html b/test/_old_fixtures/form-control/type-button.html similarity index 100% rename from test/fixtures/form-control/type-button.html rename to test/_old_fixtures/form-control/type-button.html diff --git a/test/fixtures/form-control/type-checkbox.html b/test/_old_fixtures/form-control/type-checkbox.html similarity index 100% rename from test/fixtures/form-control/type-checkbox.html rename to test/_old_fixtures/form-control/type-checkbox.html diff --git a/test/fixtures/form-control/type-file.html b/test/_old_fixtures/form-control/type-file.html similarity index 100% rename from test/fixtures/form-control/type-file.html rename to test/_old_fixtures/form-control/type-file.html diff --git a/test/fixtures/form-control/type-hidden.html b/test/_old_fixtures/form-control/type-hidden.html similarity index 100% rename from test/fixtures/form-control/type-hidden.html rename to test/_old_fixtures/form-control/type-hidden.html diff --git a/test/fixtures/form-control/type-image.html b/test/_old_fixtures/form-control/type-image.html similarity index 100% rename from test/fixtures/form-control/type-image.html rename to test/_old_fixtures/form-control/type-image.html diff --git a/test/fixtures/form-control/type-radio.html b/test/_old_fixtures/form-control/type-radio.html similarity index 100% rename from test/fixtures/form-control/type-radio.html rename to test/_old_fixtures/form-control/type-radio.html diff --git a/test/fixtures/form-control/type-range.html b/test/_old_fixtures/form-control/type-range.html similarity index 100% rename from test/fixtures/form-control/type-range.html rename to test/_old_fixtures/form-control/type-range.html diff --git a/test/fixtures/form-control/type-reset.html b/test/_old_fixtures/form-control/type-reset.html similarity index 100% rename from test/fixtures/form-control/type-reset.html rename to test/_old_fixtures/form-control/type-reset.html diff --git a/test/fixtures/form-control/type-submit.html b/test/_old_fixtures/form-control/type-submit.html similarity index 100% rename from test/fixtures/form-control/type-submit.html rename to test/_old_fixtures/form-control/type-submit.html diff --git a/test/fixtures/form-control/valid.html b/test/_old_fixtures/form-control/valid.html similarity index 100% rename from test/fixtures/form-control/valid.html rename to test/_old_fixtures/form-control/valid.html diff --git a/test/fixtures/form-control/with-type.html b/test/_old_fixtures/form-control/with-type.html similarity index 100% rename from test/fixtures/form-control/with-type.html rename to test/_old_fixtures/form-control/with-type.html diff --git a/test/fixtures/form-control/without-type.html b/test/_old_fixtures/form-control/without-type.html similarity index 100% rename from test/fixtures/form-control/without-type.html rename to test/_old_fixtures/form-control/without-type.html diff --git a/test/fixtures/form/form-horizontal-group.html b/test/_old_fixtures/form/form-horizontal-group.html similarity index 100% rename from test/fixtures/form/form-horizontal-group.html rename to test/_old_fixtures/form/form-horizontal-group.html diff --git a/test/fixtures/form/form-inline-group.html b/test/_old_fixtures/form/form-inline-group.html similarity index 100% rename from test/fixtures/form/form-inline-group.html rename to test/_old_fixtures/form/form-inline-group.html diff --git a/test/fixtures/form/nested-form-groups.html b/test/_old_fixtures/form/nested-form-groups.html similarity index 100% rename from test/fixtures/form/nested-form-groups.html rename to test/_old_fixtures/form/nested-form-groups.html diff --git a/test/fixtures/form/valid.html b/test/_old_fixtures/form/valid.html similarity index 100% rename from test/fixtures/form/valid.html rename to test/_old_fixtures/form/valid.html diff --git a/test/fixtures/glyphicons/missing-glyphicon-class.html b/test/_old_fixtures/glyphicons/missing-glyphicon-class.html similarity index 100% rename from test/fixtures/glyphicons/missing-glyphicon-class.html rename to test/_old_fixtures/glyphicons/missing-glyphicon-class.html diff --git a/test/fixtures/glyphicons/on-elem-with-child.html b/test/_old_fixtures/glyphicons/on-elem-with-child.html similarity index 100% rename from test/fixtures/glyphicons/on-elem-with-child.html rename to test/_old_fixtures/glyphicons/on-elem-with-child.html diff --git a/test/fixtures/glyphicons/on-elem-with-text.html b/test/_old_fixtures/glyphicons/on-elem-with-text.html similarity index 100% rename from test/fixtures/glyphicons/on-elem-with-text.html rename to test/_old_fixtures/glyphicons/on-elem-with-text.html diff --git a/test/fixtures/glyphicons/valid.html b/test/_old_fixtures/glyphicons/valid.html similarity index 100% rename from test/fixtures/glyphicons/valid.html rename to test/_old_fixtures/glyphicons/valid.html diff --git a/test/fixtures/grid/col-lg-0.html b/test/_old_fixtures/grid/col-lg-0.html similarity index 100% rename from test/fixtures/grid/col-lg-0.html rename to test/_old_fixtures/grid/col-lg-0.html diff --git a/test/fixtures/grid/col-md-0.html b/test/_old_fixtures/grid/col-md-0.html similarity index 100% rename from test/fixtures/grid/col-md-0.html rename to test/_old_fixtures/grid/col-md-0.html diff --git a/test/fixtures/grid/col-no-float.html b/test/_old_fixtures/grid/col-no-float.html similarity index 100% rename from test/fixtures/grid/col-no-float.html rename to test/_old_fixtures/grid/col-no-float.html diff --git a/test/fixtures/grid/col-sm-0.html b/test/_old_fixtures/grid/col-sm-0.html similarity index 100% rename from test/fixtures/grid/col-sm-0.html rename to test/_old_fixtures/grid/col-sm-0.html diff --git a/test/fixtures/grid/col-xs-0.html b/test/_old_fixtures/grid/col-xs-0.html similarity index 100% rename from test/fixtures/grid/col-xs-0.html rename to test/_old_fixtures/grid/col-xs-0.html diff --git a/test/fixtures/grid/cols-not-redundant.html b/test/_old_fixtures/grid/cols-not-redundant.html similarity index 100% rename from test/fixtures/grid/cols-not-redundant.html rename to test/_old_fixtures/grid/cols-not-redundant.html diff --git a/test/fixtures/grid/cols-outside-row-and-form-group.html b/test/_old_fixtures/grid/cols-outside-row-and-form-group.html similarity index 100% rename from test/fixtures/grid/cols-outside-row-and-form-group.html rename to test/_old_fixtures/grid/cols-outside-row-and-form-group.html diff --git a/test/fixtures/grid/cols-redundant.html b/test/_old_fixtures/grid/cols-redundant.html similarity index 100% rename from test/fixtures/grid/cols-redundant.html rename to test/_old_fixtures/grid/cols-redundant.html diff --git a/test/fixtures/grid/cols-within-form-group.html b/test/_old_fixtures/grid/cols-within-form-group.html similarity index 100% rename from test/fixtures/grid/cols-within-form-group.html rename to test/_old_fixtures/grid/cols-within-form-group.html diff --git a/test/fixtures/grid/cols-within-row.html b/test/_old_fixtures/grid/cols-within-row.html similarity index 100% rename from test/fixtures/grid/cols-within-row.html rename to test/_old_fixtures/grid/cols-within-row.html diff --git a/test/fixtures/grid/non-col-row-children.html b/test/_old_fixtures/grid/non-col-row-children.html similarity index 100% rename from test/fixtures/grid/non-col-row-children.html rename to test/_old_fixtures/grid/non-col-row-children.html diff --git a/test/fixtures/grid/row-col-same-elem.html b/test/_old_fixtures/grid/row-col-same-elem.html similarity index 100% rename from test/fixtures/grid/row-col-same-elem.html rename to test/_old_fixtures/grid/row-col-same-elem.html diff --git a/test/fixtures/grid/row-no-float.html b/test/_old_fixtures/grid/row-no-float.html similarity index 100% rename from test/fixtures/grid/row-no-float.html rename to test/_old_fixtures/grid/row-no-float.html diff --git a/test/fixtures/grid/script-child-of-row.html b/test/_old_fixtures/grid/script-child-of-row.html similarity index 100% rename from test/fixtures/grid/script-child-of-row.html rename to test/_old_fixtures/grid/script-child-of-row.html diff --git a/test/fixtures/grid/spacer-col/blank-text.html b/test/_old_fixtures/grid/spacer-col/blank-text.html similarity index 100% rename from test/fixtures/grid/spacer-col/blank-text.html rename to test/_old_fixtures/grid/spacer-col/blank-text.html diff --git a/test/fixtures/grid/spacer-col/child-with-text.html b/test/_old_fixtures/grid/spacer-col/child-with-text.html similarity index 100% rename from test/fixtures/grid/spacer-col/child-with-text.html rename to test/_old_fixtures/grid/spacer-col/child-with-text.html diff --git a/test/fixtures/grid/spacer-col/child-without-text.html b/test/_old_fixtures/grid/spacer-col/child-without-text.html similarity index 100% rename from test/fixtures/grid/spacer-col/child-without-text.html rename to test/_old_fixtures/grid/spacer-col/child-without-text.html diff --git a/test/fixtures/grid/spacer-col/col-element.html b/test/_old_fixtures/grid/spacer-col/col-element.html similarity index 100% rename from test/fixtures/grid/spacer-col/col-element.html rename to test/_old_fixtures/grid/spacer-col/col-element.html diff --git a/test/fixtures/grid/spacer-col/last-child.html b/test/_old_fixtures/grid/spacer-col/last-child.html similarity index 100% rename from test/fixtures/grid/spacer-col/last-child.html rename to test/_old_fixtures/grid/spacer-col/last-child.html diff --git a/test/fixtures/grid/spacer-col/multiple-reversed-order.html b/test/_old_fixtures/grid/spacer-col/multiple-reversed-order.html similarity index 100% rename from test/fixtures/grid/spacer-col/multiple-reversed-order.html rename to test/_old_fixtures/grid/spacer-col/multiple-reversed-order.html diff --git a/test/fixtures/grid/spacer-col/no-child-no-text.html b/test/_old_fixtures/grid/spacer-col/no-child-no-text.html similarity index 100% rename from test/fixtures/grid/spacer-col/no-child-no-text.html rename to test/_old_fixtures/grid/spacer-col/no-child-no-text.html diff --git a/test/fixtures/grid/spacer-col/non-blank-text.html b/test/_old_fixtures/grid/spacer-col/non-blank-text.html similarity index 100% rename from test/fixtures/grid/spacer-col/non-blank-text.html rename to test/_old_fixtures/grid/spacer-col/non-blank-text.html diff --git a/test/fixtures/grid/spacer-col/tricky-classes.html b/test/_old_fixtures/grid/spacer-col/tricky-classes.html similarity index 100% rename from test/fixtures/grid/spacer-col/tricky-classes.html rename to test/_old_fixtures/grid/spacer-col/tricky-classes.html diff --git a/test/fixtures/grid/spacer-col/void-elements.html b/test/_old_fixtures/grid/spacer-col/void-elements.html similarity index 100% rename from test/fixtures/grid/spacer-col/void-elements.html rename to test/_old_fixtures/grid/spacer-col/void-elements.html diff --git a/test/fixtures/images/img-responsive-bad.html b/test/_old_fixtures/images/img-responsive-bad.html similarity index 100% rename from test/fixtures/images/img-responsive-bad.html rename to test/_old_fixtures/images/img-responsive-bad.html diff --git a/test/fixtures/images/img-responsive-valid.html b/test/_old_fixtures/images/img-responsive-valid.html similarity index 100% rename from test/fixtures/images/img-responsive-valid.html rename to test/_old_fixtures/images/img-responsive-valid.html diff --git a/test/fixtures/input-group/missing-form-control.html b/test/_old_fixtures/input-group/missing-form-control.html similarity index 100% rename from test/fixtures/input-group/missing-form-control.html rename to test/_old_fixtures/input-group/missing-form-control.html diff --git a/test/fixtures/input-group/missing-input-group-addon.html b/test/_old_fixtures/input-group/missing-input-group-addon.html similarity index 100% rename from test/fixtures/input-group/missing-input-group-addon.html rename to test/_old_fixtures/input-group/missing-input-group-addon.html diff --git a/test/fixtures/input-group/missing-input-group-sizing.html b/test/_old_fixtures/input-group/missing-input-group-sizing.html similarity index 100% rename from test/fixtures/input-group/missing-input-group-sizing.html rename to test/_old_fixtures/input-group/missing-input-group-sizing.html diff --git a/test/fixtures/input-group/mixed-with-form-group.html b/test/_old_fixtures/input-group/mixed-with-form-group.html similarity index 100% rename from test/fixtures/input-group/mixed-with-form-group.html rename to test/_old_fixtures/input-group/mixed-with-form-group.html diff --git a/test/fixtures/input-group/mixed-with-grid-col.html b/test/_old_fixtures/input-group/mixed-with-grid-col.html similarity index 100% rename from test/fixtures/input-group/mixed-with-grid-col.html rename to test/_old_fixtures/input-group/mixed-with-grid-col.html diff --git a/test/fixtures/input-group/multiple-add-on-left.html b/test/_old_fixtures/input-group/multiple-add-on-left.html similarity index 100% rename from test/fixtures/input-group/multiple-add-on-left.html rename to test/_old_fixtures/input-group/multiple-add-on-left.html diff --git a/test/fixtures/input-group/multiple-add-on-right.html b/test/_old_fixtures/input-group/multiple-add-on-right.html similarity index 100% rename from test/fixtures/input-group/multiple-add-on-right.html rename to test/_old_fixtures/input-group/multiple-add-on-right.html diff --git a/test/fixtures/input-group/multiple-btn-add-on-left.html b/test/_old_fixtures/input-group/multiple-btn-add-on-left.html similarity index 100% rename from test/fixtures/input-group/multiple-btn-add-on-left.html rename to test/_old_fixtures/input-group/multiple-btn-add-on-left.html diff --git a/test/fixtures/input-group/multiple-btn-add-on-right.html b/test/_old_fixtures/input-group/multiple-btn-add-on-right.html similarity index 100% rename from test/fixtures/input-group/multiple-btn-add-on-right.html rename to test/_old_fixtures/input-group/multiple-btn-add-on-right.html diff --git a/test/fixtures/input-group/multiple-form-controls.html b/test/_old_fixtures/input-group/multiple-form-controls.html similarity index 100% rename from test/fixtures/input-group/multiple-form-controls.html rename to test/_old_fixtures/input-group/multiple-form-controls.html diff --git a/test/fixtures/input-group/multiple-mixed-add-on-left.html b/test/_old_fixtures/input-group/multiple-mixed-add-on-left.html similarity index 100% rename from test/fixtures/input-group/multiple-mixed-add-on-left.html rename to test/_old_fixtures/input-group/multiple-mixed-add-on-left.html diff --git a/test/fixtures/input-group/select.html b/test/_old_fixtures/input-group/select.html similarity index 100% rename from test/fixtures/input-group/select.html rename to test/_old_fixtures/input-group/select.html diff --git a/test/fixtures/input-group/textarea.html b/test/_old_fixtures/input-group/textarea.html similarity index 100% rename from test/fixtures/input-group/textarea.html rename to test/_old_fixtures/input-group/textarea.html diff --git a/test/fixtures/input-group/valid.html b/test/_old_fixtures/input-group/valid.html similarity index 100% rename from test/fixtures/input-group/valid.html rename to test/_old_fixtures/input-group/valid.html diff --git a/test/fixtures/jquery/and_bs_js_both_missing.html b/test/_old_fixtures/jquery/and_bs_js_both_missing.html similarity index 100% rename from test/fixtures/jquery/and_bs_js_both_missing.html rename to test/_old_fixtures/jquery/and_bs_js_both_missing.html diff --git a/test/fixtures/jquery/custom.html b/test/_old_fixtures/jquery/custom.html similarity index 100% rename from test/fixtures/jquery/custom.html rename to test/_old_fixtures/jquery/custom.html diff --git a/test/fixtures/jquery/jquery-plugin.html b/test/_old_fixtures/jquery/jquery-plugin.html similarity index 100% rename from test/fixtures/jquery/jquery-plugin.html rename to test/_old_fixtures/jquery/jquery-plugin.html diff --git a/test/fixtures/jquery/missing.html b/test/_old_fixtures/jquery/missing.html similarity index 100% rename from test/fixtures/jquery/missing.html rename to test/_old_fixtures/jquery/missing.html diff --git a/test/fixtures/jquery/old-attr.html b/test/_old_fixtures/jquery/old-attr.html similarity index 100% rename from test/fixtures/jquery/old-attr.html rename to test/_old_fixtures/jquery/old-attr.html diff --git a/test/fixtures/jquery/old-url.html b/test/_old_fixtures/jquery/old-url.html similarity index 100% rename from test/fixtures/jquery/old-url.html rename to test/_old_fixtures/jquery/old-url.html diff --git a/test/fixtures/viewport/present.html b/test/_old_fixtures/jquery/present.html similarity index 100% rename from test/fixtures/viewport/present.html rename to test/_old_fixtures/jquery/present.html diff --git a/test/fixtures/js/both.html b/test/_old_fixtures/js/both.html similarity index 100% rename from test/fixtures/js/both.html rename to test/_old_fixtures/js/both.html diff --git a/test/fixtures/js/one.html b/test/_old_fixtures/js/one.html similarity index 100% rename from test/fixtures/js/one.html rename to test/_old_fixtures/js/one.html diff --git a/test/fixtures/js/similar.html b/test/_old_fixtures/js/similar.html similarity index 100% rename from test/fixtures/js/similar.html rename to test/_old_fixtures/js/similar.html diff --git a/test/fixtures/js/weird.html b/test/_old_fixtures/js/weird.html similarity index 100% rename from test/fixtures/js/weird.html rename to test/_old_fixtures/js/weird.html diff --git a/test/fixtures/media/deprecated-pull-classes.html b/test/_old_fixtures/media/deprecated-pull-classes.html similarity index 100% rename from test/fixtures/media/deprecated-pull-classes.html rename to test/_old_fixtures/media/deprecated-pull-classes.html diff --git a/test/fixtures/media/media-classes.html b/test/_old_fixtures/media/media-classes.html similarity index 100% rename from test/fixtures/media/media-classes.html rename to test/_old_fixtures/media/media-classes.html diff --git a/test/fixtures/media/media-pull-on-media.html b/test/_old_fixtures/media/media-pull-on-media.html similarity index 100% rename from test/fixtures/media/media-pull-on-media.html rename to test/_old_fixtures/media/media-pull-on-media.html diff --git a/test/fixtures/media/misplaced-media-left.html b/test/_old_fixtures/media/misplaced-media-left.html similarity index 100% rename from test/fixtures/media/misplaced-media-left.html rename to test/_old_fixtures/media/misplaced-media-left.html diff --git a/test/fixtures/media/misplaced-media-right.html b/test/_old_fixtures/media/misplaced-media-right.html similarity index 100% rename from test/fixtures/media/misplaced-media-right.html rename to test/_old_fixtures/media/misplaced-media-right.html diff --git a/test/fixtures/modal/body-outside-content.html b/test/_old_fixtures/modal/body-outside-content.html similarity index 100% rename from test/fixtures/modal/body-outside-content.html rename to test/_old_fixtures/modal/body-outside-content.html diff --git a/test/fixtures/modal/content-outside-dialog.html b/test/_old_fixtures/modal/content-outside-dialog.html similarity index 100% rename from test/fixtures/modal/content-outside-dialog.html rename to test/_old_fixtures/modal/content-outside-dialog.html diff --git a/test/fixtures/modal/dialog-outside-modal.html b/test/_old_fixtures/modal/dialog-outside-modal.html similarity index 100% rename from test/fixtures/modal/dialog-outside-modal.html rename to test/_old_fixtures/modal/dialog-outside-modal.html diff --git a/test/fixtures/modal/footer-outside-content.html b/test/_old_fixtures/modal/footer-outside-content.html similarity index 100% rename from test/fixtures/modal/footer-outside-content.html rename to test/_old_fixtures/modal/footer-outside-content.html diff --git a/test/fixtures/modal/header-outside-content.html b/test/_old_fixtures/modal/header-outside-content.html similarity index 100% rename from test/fixtures/modal/header-outside-content.html rename to test/_old_fixtures/modal/header-outside-content.html diff --git a/test/fixtures/modal/missing-role-dialog.html b/test/_old_fixtures/modal/missing-role-dialog.html similarity index 100% rename from test/fixtures/modal/missing-role-dialog.html rename to test/_old_fixtures/modal/missing-role-dialog.html diff --git a/test/fixtures/modal/missing-role-document.html b/test/_old_fixtures/modal/missing-role-document.html similarity index 100% rename from test/fixtures/modal/missing-role-document.html rename to test/_old_fixtures/modal/missing-role-document.html diff --git a/test/fixtures/modal/remote.html b/test/_old_fixtures/modal/remote.html similarity index 100% rename from test/fixtures/modal/remote.html rename to test/_old_fixtures/modal/remote.html diff --git a/test/fixtures/modal/tabindex-missing.html b/test/_old_fixtures/modal/tabindex-missing.html similarity index 100% rename from test/fixtures/modal/tabindex-missing.html rename to test/_old_fixtures/modal/tabindex-missing.html diff --git a/test/fixtures/modal/title-outside-header.html b/test/_old_fixtures/modal/title-outside-header.html similarity index 100% rename from test/fixtures/modal/title-outside-header.html rename to test/_old_fixtures/modal/title-outside-header.html diff --git a/test/fixtures/modal/valid.html b/test/_old_fixtures/modal/valid.html similarity index 100% rename from test/fixtures/modal/valid.html rename to test/_old_fixtures/modal/valid.html diff --git a/test/fixtures/modal/with-hide.html b/test/_old_fixtures/modal/with-hide.html similarity index 100% rename from test/fixtures/modal/with-hide.html rename to test/_old_fixtures/modal/with-hide.html diff --git a/test/fixtures/modal/within-navbar.html b/test/_old_fixtures/modal/within-navbar.html similarity index 100% rename from test/fixtures/modal/within-navbar.html rename to test/_old_fixtures/modal/within-navbar.html diff --git a/test/fixtures/modal/within-table.html b/test/_old_fixtures/modal/within-table.html similarity index 100% rename from test/fixtures/modal/within-table.html rename to test/_old_fixtures/modal/within-table.html diff --git a/test/fixtures/navbar/btn-bad.html b/test/_old_fixtures/navbar/btn-bad.html similarity index 100% rename from test/fixtures/navbar/btn-bad.html rename to test/_old_fixtures/navbar/btn-bad.html diff --git a/test/fixtures/navbar/navbar-btn-bad.html b/test/_old_fixtures/navbar/navbar-btn-bad.html similarity index 100% rename from test/fixtures/navbar/navbar-btn-bad.html rename to test/_old_fixtures/navbar/navbar-btn-bad.html diff --git a/test/fixtures/navbar/navbar-container.html b/test/_old_fixtures/navbar/navbar-container.html similarity index 100% rename from test/fixtures/navbar/navbar-container.html rename to test/_old_fixtures/navbar/navbar-container.html diff --git a/test/fixtures/navbar/navbar-left-bad.html b/test/_old_fixtures/navbar/navbar-left-bad.html similarity index 100% rename from test/fixtures/navbar/navbar-left-bad.html rename to test/_old_fixtures/navbar/navbar-left-bad.html diff --git a/test/fixtures/navbar/navbar-left-right-on-navbar.html b/test/_old_fixtures/navbar/navbar-left-right-on-navbar.html similarity index 100% rename from test/fixtures/navbar/navbar-left-right-on-navbar.html rename to test/_old_fixtures/navbar/navbar-left-right-on-navbar.html diff --git a/test/fixtures/navbar/navbar-left-right-valid.html b/test/_old_fixtures/navbar/navbar-left-right-valid.html similarity index 100% rename from test/fixtures/navbar/navbar-left-right-valid.html rename to test/_old_fixtures/navbar/navbar-left-right-valid.html diff --git a/test/fixtures/navbar/navbar-right-bad.html b/test/_old_fixtures/navbar/navbar-right-bad.html similarity index 100% rename from test/fixtures/navbar/navbar-right-bad.html rename to test/_old_fixtures/navbar/navbar-right-bad.html diff --git a/test/fixtures/outdated/bootstrap-css.html b/test/_old_fixtures/outdated/bootstrap-css.html similarity index 100% rename from test/fixtures/outdated/bootstrap-css.html rename to test/_old_fixtures/outdated/bootstrap-css.html diff --git a/test/fixtures/outdated/bootstrap-extensions-okay.html b/test/_old_fixtures/outdated/bootstrap-extensions-okay.html similarity index 100% rename from test/fixtures/outdated/bootstrap-extensions-okay.html rename to test/_old_fixtures/outdated/bootstrap-extensions-okay.html diff --git a/test/fixtures/outdated/bootstrap-js.html b/test/_old_fixtures/outdated/bootstrap-js.html similarity index 100% rename from test/fixtures/outdated/bootstrap-js.html rename to test/_old_fixtures/outdated/bootstrap-js.html diff --git a/test/fixtures/outdated/bootstrap-min-css.html b/test/_old_fixtures/outdated/bootstrap-min-css.html similarity index 100% rename from test/fixtures/outdated/bootstrap-min-css.html rename to test/_old_fixtures/outdated/bootstrap-min-css.html diff --git a/test/fixtures/outdated/bootstrap-min-js.html b/test/_old_fixtures/outdated/bootstrap-min-js.html similarity index 100% rename from test/fixtures/outdated/bootstrap-min-js.html rename to test/_old_fixtures/outdated/bootstrap-min-js.html diff --git a/test/fixtures/outdated/js-version-not-in-url-current.html b/test/_old_fixtures/outdated/js-version-not-in-url-current.html similarity index 100% rename from test/fixtures/outdated/js-version-not-in-url-current.html rename to test/_old_fixtures/outdated/js-version-not-in-url-current.html diff --git a/test/fixtures/outdated/js-version-not-in-url-outdated.html b/test/_old_fixtures/outdated/js-version-not-in-url-outdated.html similarity index 100% rename from test/fixtures/outdated/js-version-not-in-url-outdated.html rename to test/_old_fixtures/outdated/js-version-not-in-url-outdated.html diff --git a/test/fixtures/panels/panel-body-missing-parent.html b/test/_old_fixtures/panels/panel-body-missing-parent.html similarity index 100% rename from test/fixtures/panels/panel-body-missing-parent.html rename to test/_old_fixtures/panels/panel-body-missing-parent.html diff --git a/test/fixtures/panels/panel-footer-missing-parent.html b/test/_old_fixtures/panels/panel-footer-missing-parent.html similarity index 100% rename from test/fixtures/panels/panel-footer-missing-parent.html rename to test/_old_fixtures/panels/panel-footer-missing-parent.html diff --git a/test/fixtures/panels/panel-heading-missing-parent.html b/test/_old_fixtures/panels/panel-heading-missing-parent.html similarity index 100% rename from test/fixtures/panels/panel-heading-missing-parent.html rename to test/_old_fixtures/panels/panel-heading-missing-parent.html diff --git a/test/fixtures/panels/panel-title-missing-parent.html b/test/_old_fixtures/panels/panel-title-missing-parent.html similarity index 100% rename from test/fixtures/panels/panel-title-missing-parent.html rename to test/_old_fixtures/panels/panel-title-missing-parent.html diff --git a/test/fixtures/panels/panels.html b/test/_old_fixtures/panels/panels.html similarity index 100% rename from test/fixtures/panels/panels.html rename to test/_old_fixtures/panels/panels.html diff --git a/test/fixtures/table/responsive-incorrect.html b/test/_old_fixtures/table/responsive-incorrect.html similarity index 100% rename from test/fixtures/table/responsive-incorrect.html rename to test/_old_fixtures/table/responsive-incorrect.html diff --git a/test/fixtures/table/responsive-valid.html b/test/_old_fixtures/table/responsive-valid.html similarity index 100% rename from test/fixtures/table/responsive-valid.html rename to test/_old_fixtures/table/responsive-valid.html diff --git a/test/fixtures/tooltips/in-btn-groups.html b/test/_old_fixtures/tooltips/in-btn-groups.html similarity index 100% rename from test/fixtures/tooltips/in-btn-groups.html rename to test/_old_fixtures/tooltips/in-btn-groups.html diff --git a/test/fixtures/tooltips/on-disabled-elems.html b/test/_old_fixtures/tooltips/on-disabled-elems.html similarity index 100% rename from test/fixtures/tooltips/on-disabled-elems.html rename to test/_old_fixtures/tooltips/on-disabled-elems.html diff --git a/test/fixtures/version-4/bootstrap-css.html b/test/_old_fixtures/version-4/bootstrap-css.html similarity index 100% rename from test/fixtures/version-4/bootstrap-css.html rename to test/_old_fixtures/version-4/bootstrap-css.html diff --git a/test/fixtures/version-4/bootstrap-extensions-okay.html b/test/_old_fixtures/version-4/bootstrap-extensions-okay.html similarity index 100% rename from test/fixtures/version-4/bootstrap-extensions-okay.html rename to test/_old_fixtures/version-4/bootstrap-extensions-okay.html diff --git a/test/fixtures/version-4/bootstrap-js.html b/test/_old_fixtures/version-4/bootstrap-js.html similarity index 100% rename from test/fixtures/version-4/bootstrap-js.html rename to test/_old_fixtures/version-4/bootstrap-js.html diff --git a/test/fixtures/version-4/bootstrap-min-css.html b/test/_old_fixtures/version-4/bootstrap-min-css.html similarity index 100% rename from test/fixtures/version-4/bootstrap-min-css.html rename to test/_old_fixtures/version-4/bootstrap-min-css.html diff --git a/test/fixtures/version-4/bootstrap-min-js.html b/test/_old_fixtures/version-4/bootstrap-min-js.html similarity index 100% rename from test/fixtures/version-4/bootstrap-min-js.html rename to test/_old_fixtures/version-4/bootstrap-min-js.html diff --git a/test/fixtures/version-4/js-version-not-in-url-4.0.0.html b/test/_old_fixtures/version-4/js-version-not-in-url-4.0.0.html similarity index 100% rename from test/fixtures/version-4/js-version-not-in-url-4.0.0.html rename to test/_old_fixtures/version-4/js-version-not-in-url-4.0.0.html diff --git a/test/fixtures/viewport/missing.html b/test/_old_fixtures/viewport/missing.html similarity index 100% rename from test/fixtures/viewport/missing.html rename to test/_old_fixtures/viewport/missing.html diff --git a/test/fixtures/x-ua-compatible/present.html b/test/_old_fixtures/viewport/present.html similarity index 100% rename from test/fixtures/x-ua-compatible/present.html rename to test/_old_fixtures/viewport/present.html diff --git a/test/fixtures/x-ua-compatible/lowercase.html b/test/_old_fixtures/x-ua-compatible/lowercase.html similarity index 100% rename from test/fixtures/x-ua-compatible/lowercase.html rename to test/_old_fixtures/x-ua-compatible/lowercase.html diff --git a/test/fixtures/x-ua-compatible/missing.html b/test/_old_fixtures/x-ua-compatible/missing.html similarity index 100% rename from test/fixtures/x-ua-compatible/missing.html rename to test/_old_fixtures/x-ua-compatible/missing.html diff --git a/test/_old_fixtures/x-ua-compatible/present.html b/test/_old_fixtures/x-ua-compatible/present.html new file mode 100644 index 00000000..a1bd00e2 --- /dev/null +++ b/test/_old_fixtures/x-ua-compatible/present.html @@ -0,0 +1,23 @@ + + + + + + + Test + + + + + + + + + +
    +
      + + diff --git a/test/bootlint_test.js b/test/bootlint_test.js index 15161c84..a5e058a0 100644 --- a/test/bootlint_test.js +++ b/test/bootlint_test.js @@ -56,6 +56,7 @@ exports.bootlint = { 'should not complain when the legacy-compatibility HTML5 doctype is used.'); test.done(); }, + /* 'disabling lint checks': function (test) { test.expect(1); test.deepEqual(lintHtml(utf8Fixture('bs-v2.html'), ['E002', 'E013']), @@ -63,6 +64,8 @@ exports.bootlint = { 'should complain when Bootstrap v2 grid classes are present.'); test.done(); }, + */ + /* 'UTF-8 charset meta tag': function (test) { test.expect(4); test.deepEqual(lintHtml(utf8Fixture('charset/utf8.html')), @@ -79,6 +82,8 @@ exports.bootlint = { 'should complain when tag specifies non-UTF-8 charset.'); test.done(); }, + */ + /* 'X-UA-Compatible': function (test) { test.expect(3); test.deepEqual(lintHtml(utf8Fixture('x-ua-compatible/present.html')), @@ -92,6 +97,8 @@ exports.bootlint = { 'should complain when X-UA-Compatible tag is missing.'); test.done(); }, + */ + /* 'Bootstrap v2': function (test) { test.expect(1); test.deepEqual(lintHtml(utf8Fixture('bs-v2.html')), @@ -102,6 +109,8 @@ exports.bootlint = { 'should complain when Bootstrap v2 grid classes are present.'); test.done(); }, + */ + /* 'rows outside containers': function (test) { test.expect(6); test.deepEqual(lintHtml(utf8Fixture('containers/fixed.html')), @@ -124,6 +133,8 @@ exports.bootlint = { 'should not complain when rows are children of `.modal-body`.'); test.done(); }, + */ + /* 'nested containers': function (test) { test.expect(4); test.deepEqual(lintHtml(utf8Fixture('containers/nested-fixed-fixed.html')), @@ -140,6 +151,8 @@ exports.bootlint = { 'should complain when a container is within a container.'); test.done(); }, + */ + /* 'viewport meta tag': function (test) { test.expect(2); test.deepEqual(lintHtml(utf8Fixture('viewport/present.html')), @@ -150,6 +163,8 @@ exports.bootlint = { 'should complain when viewport tag is missing.'); test.done(); }, + */ + /* 'row and column classes on same element': function (test) { test.expect(1); test.deepEqual(lintHtml(utf8Fixture('grid/row-col-same-elem.html')), @@ -160,6 +175,8 @@ exports.bootlint = { 'should complain when .row and .col-*-* are used on the same element.'); test.done(); }, + */ + /* 'row and container classes on same element': function (test) { test.expect(2); test.deepEqual(lintHtml(utf8Fixture('containers/fixed-row-same-elem.html')), @@ -170,6 +187,8 @@ exports.bootlint = { 'should complain when .row and .container-fluid are used on the same element.'); test.done(); }, + */ + /* 'remote modals': function (test) { test.expect(1); test.deepEqual(lintHtml(utf8Fixture('modal/remote.html')), @@ -177,6 +196,8 @@ exports.bootlint = { 'should complain when remote modals are present.'); test.done(); }, + */ + /* 'jQuery': function (test) { test.expect(5); test.deepEqual(lintHtml(utf8Fixture('jquery/present.html')), @@ -196,6 +217,8 @@ exports.bootlint = { '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')), @@ -212,6 +235,8 @@ exports.bootlint = { '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')), @@ -225,6 +250,8 @@ exports.bootlint = { 'should not complain about input groups with text-based s.'); test.done(); }, + */ + /* 'tooltips and popovers on disabled elements': function (test) { test.expect(1); test.deepEqual(lintHtml(utf8Fixture('tooltips/on-disabled-elems.html')), @@ -237,6 +264,8 @@ exports.bootlint = { 'should complain about tooltips and popovers on disabled elements.'); test.done(); }, + */ + /* 'tooltips and popovers within button groups should have their container set to body': function (test) { test.expect(1); test.deepEqual(lintHtml(utf8Fixture('tooltips/in-btn-groups.html')), @@ -244,6 +273,8 @@ exports.bootlint = { 'should complain when `data-*`-based tooltips or popovers lack `data-container="body"`.'); test.done(); }, + */ + /* 'btn/input sizing used without input-group-* size': function (test) { test.expect(1); test.deepEqual(lintHtml(utf8Fixture('input-group/missing-input-group-sizing.html')), @@ -251,6 +282,8 @@ exports.bootlint = { 'should complain when an input/btn sizes are used within input-group.'); test.done(); }, + */ + /* 'input groups with multiple form controls': function (test) { test.expect(1); test.deepEqual(lintHtml(utf8Fixture('input-group/multiple-form-controls.html')), @@ -258,6 +291,8 @@ exports.bootlint = { 'should complain when an input group contains multiple form controls.'); test.done(); }, + */ + /* 'mixing input groups with form groups': function (test) { test.expect(1); test.deepEqual(lintHtml(utf8Fixture('input-group/mixed-with-form-group.html')), @@ -265,6 +300,8 @@ exports.bootlint = { 'should complain when .input-group and .form-group are used on the same element.'); test.done(); }, + */ + /* 'mixing input groups with grid columns': function (test) { test.expect(1); test.deepEqual(lintHtml(utf8Fixture('input-group/mixed-with-grid-col.html')), @@ -272,6 +309,8 @@ exports.bootlint = { 'should complain when an input group has a grid column class on it.'); test.done(); }, + */ + /* 'input groups missing controls and addons': function (test) { test.expect(2); test.deepEqual(lintHtml(utf8Fixture('input-group/missing-input-group-addon.html')), @@ -282,6 +321,8 @@ exports.bootlint = { 'should complain when missing missing a `.input-group-addon`'); test.done(); }, + */ + /* 'non-column children of rows': function (test) { test.expect(2); test.deepEqual(lintHtml(utf8Fixture('grid/non-col-row-children.html')), @@ -292,6 +333,8 @@ exports.bootlint = { 'should not complain about - - - - - - - -
      -
        -
      1. -
      - - diff --git a/test/_old_fixtures/doctype/html5-legacy.html b/test/_old_fixtures/doctype/html5-legacy.html deleted file mode 100644 index 691b4d45..00000000 --- a/test/_old_fixtures/doctype/html5-legacy.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - Test - - - - - - - - - -
      -
        - - diff --git a/test/_old_fixtures/doctype/missing.html b/test/_old_fixtures/doctype/missing.html deleted file mode 100644 index e703294c..00000000 --- a/test/_old_fixtures/doctype/missing.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - Test - - - - - - - - - -
        -
          -
        1. -
        - - diff --git a/test/_old_fixtures/x-ua-compatible/present.html b/test/_old_fixtures/x-ua-compatible/present.html index a1bd00e2..2e4c0983 100644 --- a/test/_old_fixtures/x-ua-compatible/present.html +++ b/test/_old_fixtures/x-ua-compatible/present.html @@ -5,14 +5,14 @@ Test + + - - - - + + diff --git a/test/bootlint_test.js b/test/bootlint_test.js index a5e058a0..760d8b3e 100644 --- a/test/bootlint_test.js +++ b/test/bootlint_test.js @@ -164,18 +164,16 @@ exports.bootlint = { test.done(); }, */ - /* 'row and column classes on same element': function (test) { test.expect(1); test.deepEqual(lintHtml(utf8Fixture('grid/row-col-same-elem.html')), [ - 'Found both `.row` and `.col-*-*` used on the same element', - 'Columns (`.col-*-*`) can only be children of `.row`s or `.form-group`s' + 'Found both `.row` and `.col*` used on the same element', + 'Columns (`.col*`) can only be children of `.row`s or `.form-row`s' ], - 'should complain when .row and .col-*-* are used on the same element.'); + 'should complain when .row and .col* are used on the same element.'); test.done(); }, - */ /* 'row and container classes on same element': function (test) { test.expect(2); @@ -187,7 +185,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); @@ -322,18 +319,16 @@ exports.bootlint = { test.done(); }, */ - /* 'non-column children of rows': function (test) { test.expect(2); test.deepEqual(lintHtml(utf8Fixture('grid/non-col-row-children.html')), - ['Only columns (`.col-*-*`) may be children of `.row`s'], + ['Only columns (`.col*`) or `.clearfix` may be children of `.row`s or `.form-row`s'], 'should complain when rows have non-column children.'); test.deepEqual(lintHtml(utf8Fixture('grid/script-child-of-row.html')), [], 'should not complain about +
        +
        +
        Content
        +
        +
        +
        -
          +
            +
          1. +
          2. +
          diff --git a/test/_old_fixtures/grid/cols-not-redundant.html b/test/fixtures/grid/cols-not-redundant.html similarity index 84% rename from test/_old_fixtures/grid/cols-not-redundant.html rename to test/fixtures/grid/cols-not-redundant.html index 83421e0d..49b3a923 100644 --- a/test/_old_fixtures/grid/cols-not-redundant.html +++ b/test/fixtures/grid/cols-not-redundant.html @@ -19,10 +19,10 @@
          -
          Single-digit columns
          +
          Single-digit columns
          -
          Double-digit columns
          +
          Double-digit columns
          diff --git a/test/_old_fixtures/grid/cols-outside-row-and-form-group.html b/test/fixtures/grid/cols-outside-row-and-form-group.html similarity index 91% rename from test/_old_fixtures/grid/cols-outside-row-and-form-group.html rename to test/fixtures/grid/cols-outside-row-and-form-group.html index b4538fa0..92878b56 100644 --- a/test/_old_fixtures/grid/cols-outside-row-and-form-group.html +++ b/test/fixtures/grid/cols-outside-row-and-form-group.html @@ -25,7 +25,7 @@
            -
          1. +
          diff --git a/test/_old_fixtures/grid/cols-redundant.html b/test/fixtures/grid/cols-redundant.html similarity index 65% rename from test/_old_fixtures/grid/cols-redundant.html rename to test/fixtures/grid/cols-redundant.html index e3d62289..6f3503ae 100644 --- a/test/_old_fixtures/grid/cols-redundant.html +++ b/test/fixtures/grid/cols-redundant.html @@ -19,16 +19,16 @@
          -
          Single-digit columns; sm-lg redundant; random classes interleaved
          +
          Single-digit columns; sm-xl redundant; random classes interleaved
          -
          Double-digit columns; xs-md redundant; random classes interleaved
          +
          Double-digit columns; [default]-lg redundant; random classes interleaved
          -
          xs-lg redundant
          +
          up to xl redundant
          -
          xs-sm redundant
          +
          up to sm redundant
          sm-md redundant
          @@ -36,16 +36,20 @@
          md-lg redundant
          +
          +
          lg-xl redundant
          +
            -
          1. -
          2. -
          3. -
          4. +
          5. +
          6. +
          7. +
          8. +
          diff --git a/test/_old_fixtures/grid/cols-within-form-group.html b/test/fixtures/grid/cols-within-form-group.html similarity index 100% rename from test/_old_fixtures/grid/cols-within-form-group.html rename to test/fixtures/grid/cols-within-form-group.html diff --git a/test/_old_fixtures/grid/cols-within-row.html b/test/fixtures/grid/cols-within-row.html similarity index 100% rename from test/_old_fixtures/grid/cols-within-row.html rename to test/fixtures/grid/cols-within-row.html diff --git a/test/_old_fixtures/grid/non-col-row-children.html b/test/fixtures/grid/non-col-row-children.html similarity index 90% rename from test/_old_fixtures/grid/non-col-row-children.html rename to test/fixtures/grid/non-col-row-children.html index 8cdd3c5e..fee3cef1 100644 --- a/test/_old_fixtures/grid/non-col-row-children.html +++ b/test/fixtures/grid/non-col-row-children.html @@ -25,7 +25,7 @@
            -
          1. +
          diff --git a/test/_old_fixtures/grid/row-col-same-elem.html b/test/fixtures/grid/row-col-same-elem.html similarity index 80% rename from test/_old_fixtures/grid/row-col-same-elem.html rename to test/fixtures/grid/row-col-same-elem.html index e583ba53..f26678bb 100644 --- a/test/_old_fixtures/grid/row-col-same-elem.html +++ b/test/fixtures/grid/row-col-same-elem.html @@ -18,13 +18,13 @@
          -
          +
            -
          1. -
          2. +
          3. +
          diff --git a/test/_old_fixtures/grid/row-no-float.html b/test/fixtures/grid/row-no-float.html similarity index 85% rename from test/_old_fixtures/grid/row-no-float.html rename to test/fixtures/grid/row-no-float.html index a5fb8d8e..f2970ba5 100644 --- a/test/_old_fixtures/grid/row-no-float.html +++ b/test/fixtures/grid/row-no-float.html @@ -18,11 +18,11 @@
          -
          -
          Content
          +
          +
          Content
          - -
          + +
          Content
          @@ -37,7 +37,7 @@
            -
          1. +
          diff --git a/test/_old_fixtures/grid/script-child-of-row.html b/test/fixtures/grid/script-child-of-row.html similarity index 100% rename from test/_old_fixtures/grid/script-child-of-row.html rename to test/fixtures/grid/script-child-of-row.html diff --git a/test/_old_fixtures/grid/spacer-col/blank-text.html b/test/fixtures/grid/spacer-col/blank-text.html similarity index 79% rename from test/_old_fixtures/grid/spacer-col/blank-text.html rename to test/fixtures/grid/spacer-col/blank-text.html index 8f7b9b2d..5d45a659 100644 --- a/test/_old_fixtures/grid/spacer-col/blank-text.html +++ b/test/fixtures/grid/spacer-col/blank-text.html @@ -19,16 +19,16 @@
          -
          - +
          +
          -
          Actual column
          +
          Actual column
            -
          1. +
          diff --git a/test/_old_fixtures/grid/spacer-col/child-with-text.html b/test/fixtures/grid/spacer-col/child-with-text.html similarity index 89% rename from test/_old_fixtures/grid/spacer-col/child-with-text.html rename to test/fixtures/grid/spacer-col/child-with-text.html index 112c7cef..2fbf4b59 100644 --- a/test/_old_fixtures/grid/spacer-col/child-with-text.html +++ b/test/fixtures/grid/spacer-col/child-with-text.html @@ -19,8 +19,8 @@
          -

          Some text

          -
          Actual column
          +

          Some text

          +
          Actual column
          diff --git a/test/_old_fixtures/grid/spacer-col/child-without-text.html b/test/fixtures/grid/spacer-col/child-without-text.html similarity index 89% rename from test/_old_fixtures/grid/spacer-col/child-without-text.html rename to test/fixtures/grid/spacer-col/child-without-text.html index 2e509cba..85791e07 100644 --- a/test/_old_fixtures/grid/spacer-col/child-without-text.html +++ b/test/fixtures/grid/spacer-col/child-without-text.html @@ -19,8 +19,8 @@
          -

          -
          Actual column
          +

          +
          Actual column
          diff --git a/test/_old_fixtures/grid/spacer-col/col-element.html b/test/fixtures/grid/spacer-col/col-element.html similarity index 85% rename from test/_old_fixtures/grid/spacer-col/col-element.html rename to test/fixtures/grid/spacer-col/col-element.html index 6cc2735d..d2051ab4 100644 --- a/test/_old_fixtures/grid/spacer-col/col-element.html +++ b/test/fixtures/grid/spacer-col/col-element.html @@ -20,8 +20,8 @@
          - - + + @@ -31,8 +31,8 @@
          -

          Some text

          -
          Actual column
          +

          Some text

          +
          Actual column
          diff --git a/test/_old_fixtures/grid/spacer-col/last-child.html b/test/fixtures/grid/spacer-col/last-child.html similarity index 90% rename from test/_old_fixtures/grid/spacer-col/last-child.html rename to test/fixtures/grid/spacer-col/last-child.html index 9d75a0a9..156fda0a 100644 --- a/test/_old_fixtures/grid/spacer-col/last-child.html +++ b/test/fixtures/grid/spacer-col/last-child.html @@ -19,8 +19,8 @@
          -
          Some content
          -
          +
          Some content
          +
          diff --git a/test/fixtures/grid/spacer-col/multiple-reversed-order.html b/test/fixtures/grid/spacer-col/multiple-reversed-order.html new file mode 100644 index 00000000..d00ce948 --- /dev/null +++ b/test/fixtures/grid/spacer-col/multiple-reversed-order.html @@ -0,0 +1,32 @@ + + + + + + + Test + + + + + + + + + +
          +
          +
          +
          Actual column
          +
          +
          + +
          +
            +
          1. +
          + + diff --git a/test/_old_fixtures/grid/spacer-col/no-child-no-text.html b/test/fixtures/grid/spacer-col/no-child-no-text.html similarity index 78% rename from test/_old_fixtures/grid/spacer-col/no-child-no-text.html rename to test/fixtures/grid/spacer-col/no-child-no-text.html index e52ddc64..f92d5304 100644 --- a/test/_old_fixtures/grid/spacer-col/no-child-no-text.html +++ b/test/fixtures/grid/spacer-col/no-child-no-text.html @@ -19,14 +19,14 @@
          -
          -
          Actual column
          +
          +
          Actual column
            -
          1. +
          diff --git a/test/_old_fixtures/grid/spacer-col/non-blank-text.html b/test/fixtures/grid/spacer-col/non-blank-text.html similarity index 89% rename from test/_old_fixtures/grid/spacer-col/non-blank-text.html rename to test/fixtures/grid/spacer-col/non-blank-text.html index 9223d9f0..c4180a56 100644 --- a/test/_old_fixtures/grid/spacer-col/non-blank-text.html +++ b/test/fixtures/grid/spacer-col/non-blank-text.html @@ -19,8 +19,8 @@
          -
          Some text
          -
          Actual column
          +
          Some text
          +
          Actual column
          diff --git a/test/fixtures/grid/spacer-col/tricky-classes.html b/test/fixtures/grid/spacer-col/tricky-classes.html new file mode 100644 index 00000000..cd553509 --- /dev/null +++ b/test/fixtures/grid/spacer-col/tricky-classes.html @@ -0,0 +1,32 @@ + + + + + + + Test + + + + + + + + + +
          +
          +
          +
          Actual column
          +
          +
          + +
          +
            +
          1. +
          + + diff --git a/test/_old_fixtures/grid/spacer-col/void-elements.html b/test/fixtures/grid/spacer-col/void-elements.html similarity index 72% rename from test/_old_fixtures/grid/spacer-col/void-elements.html rename to test/fixtures/grid/spacer-col/void-elements.html index 83a7813c..d6bccffd 100644 --- a/test/_old_fixtures/grid/spacer-col/void-elements.html +++ b/test/fixtures/grid/spacer-col/void-elements.html @@ -19,36 +19,36 @@
          -
          -
          Actual column
          +
          +
          Actual column
          - -
          Actual column
          + +
          Actual column
          -
          -
          Actual column
          +
          +
          Actual column
          - An image -
          Actual column
          + An image +
          Actual column
          - -
          Actual column
          + +
          Actual column
          From 8e06ef6b0224499f28cf930a80bbd82656ea00f9 Mon Sep 17 00:00:00 2001 From: Herst Date: Sat, 29 Dec 2018 10:45:49 +0100 Subject: [PATCH 5/5] More specific selectors in Bootstrap 3 detection --- src/bootlint.js | 318 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 318 insertions(+) diff --git a/src/bootlint.js b/src/bootlint.js index e5e0f2c3..5b033c05 100644 --- a/src/bootlint.js +++ b/src/bootlint.js @@ -609,6 +609,324 @@ var LocationIndex = _location.LocationIndex; } }); */ + addLinter('W018', function bs3ClassUsed($, reporter) { + var bs3Selectors = [ + 'td.active, th.active, tr.info', + '.affix', + '.alert-dismissable', + '.blockquote-reverse', + '.tooltip.bottom, .popover.bottom', + '.bottom-left', + '.bottom-right', + '.btn-default', + '.btn-group-justified', + '.btn-group-xs', + '.btn-xs', + '.thumbnail .caption', + '.caret', + '.carousel-control', + '.center-block', + '.checkbox label', + '.checkbox-inline label', + '.col-lg-offset-0', + '.col-lg-offset-1', + '.col-lg-offset-2', + '.col-lg-offset-3', + '.col-lg-offset-4', + '.col-lg-offset-5', + '.col-lg-offset-6', + '.col-lg-offset-7', + '.col-lg-offset-8', + '.col-lg-offset-9', + '.col-lg-offset-10', + '.col-lg-offset-11', + '.col-lg-offset-12', + '.col-lg-pull-0', + '.col-lg-pull-1', + '.col-lg-pull-2', + '.col-lg-pull-3', + '.col-lg-pull-4', + '.col-lg-pull-5', + '.col-lg-pull-6', + '.col-lg-pull-7', + '.col-lg-pull-8', + '.col-lg-pull-9', + '.col-lg-pull-10', + '.col-lg-pull-11', + '.col-lg-pull-12', + '.col-lg-push-0', + '.col-lg-push-1', + '.col-lg-push-2', + '.col-lg-push-3', + '.col-lg-push-4', + '.col-lg-push-5', + '.col-lg-push-6', + '.col-lg-push-7', + '.col-lg-push-8', + '.col-lg-push-9', + '.col-lg-push-10', + '.col-lg-push-11', + '.col-lg-push-12', + '.col-md-offset-0', + '.col-md-offset-1', + '.col-md-offset-2', + '.col-md-offset-3', + '.col-md-offset-4', + '.col-md-offset-5', + '.col-md-offset-6', + '.col-md-offset-7', + '.col-md-offset-8', + '.col-md-offset-9', + '.col-md-offset-10', + '.col-md-offset-11', + '.col-md-offset-12', + '.col-md-pull-0', + '.col-md-pull-1', + '.col-md-pull-2', + '.col-md-pull-3', + '.col-md-pull-4', + '.col-md-pull-5', + '.col-md-pull-6', + '.col-md-pull-7', + '.col-md-pull-8', + '.col-md-pull-9', + '.col-md-pull-10', + '.col-md-pull-11', + '.col-md-pull-12', + '.col-md-push-0', + '.col-md-push-1', + '.col-md-push-2', + '.col-md-push-3', + '.col-md-push-4', + '.col-md-push-5', + '.col-md-push-6', + '.col-md-push-7', + '.col-md-push-8', + '.col-md-push-9', + '.col-md-push-10', + '.col-md-push-11', + '.col-md-push-12', + '.col-sm-offset-0', + '.col-sm-offset-1', + '.col-sm-offset-2', + '.col-sm-offset-3', + '.col-sm-offset-4', + '.col-sm-offset-5', + '.col-sm-offset-6', + '.col-sm-offset-7', + '.col-sm-offset-8', + '.col-sm-offset-9', + '.col-sm-offset-10', + '.col-sm-offset-11', + '.col-sm-offset-12', + '.col-sm-pull-0', + '.col-sm-pull-1', + '.col-sm-pull-2', + '.col-sm-pull-3', + '.col-sm-pull-4', + '.col-sm-pull-5', + '.col-sm-pull-6', + '.col-sm-pull-7', + '.col-sm-pull-8', + '.col-sm-pull-9', + '.col-sm-pull-10', + '.col-sm-pull-11', + '.col-sm-pull-12', + '.col-sm-push-0', + '.col-sm-push-1', + '.col-sm-push-2', + '.col-sm-push-3', + '.col-sm-push-4', + '.col-sm-push-5', + '.col-sm-push-6', + '.col-sm-push-7', + '.col-sm-push-8', + '.col-sm-push-9', + '.col-sm-push-10', + '.col-sm-push-11', + '.col-sm-push-12', + '.col-xs-1', + '.col-xs-2', + '.col-xs-3', + '.col-xs-4', + '.col-xs-5', + '.col-xs-6', + '.col-xs-7', + '.col-xs-8', + '.col-xs-9', + '.col-xs-10', + '.col-xs-11', + '.col-xs-12', + '.col-xs-offset-0', + '.col-xs-offset-1', + '.col-xs-offset-2', + '.col-xs-offset-3', + '.col-xs-offset-4', + '.col-xs-offset-5', + '.col-xs-offset-6', + '.col-xs-offset-7', + '.col-xs-offset-8', + '.col-xs-offset-9', + '.col-xs-offset-10', + '.col-xs-offset-11', + '.col-xs-offset-12', + '.col-xs-pull-0', + '.col-xs-pull-1', + '.col-xs-pull-2', + '.col-xs-pull-3', + '.col-xs-pull-4', + '.col-xs-pull-5', + '.col-xs-pull-6', + '.col-xs-pull-7', + '.col-xs-pull-8', + '.col-xs-pull-9', + '.col-xs-pull-10', + '.col-xs-pull-11', + '.col-xs-pull-12', + '.col-xs-push-0', + '.col-xs-push-1', + '.col-xs-push-2', + '.col-xs-push-3', + '.col-xs-push-4', + '.col-xs-push-5', + '.col-xs-push-6', + '.col-xs-push-7', + '.col-xs-push-8', + '.col-xs-push-9', + '.col-xs-push-10', + '.col-xs-push-11', + '.col-xs-push-12', + '.control-label', + 'td.danger, th.danger, tr.danger', + '.dl-horizontal', + '.dropdown-backdrop', + '.dropdown-menu-left', + '.form-control-static', + '.form-group-lg', + '.form-group-sm', + '.form-horizontal', + '.has-error', + '.has-success', + '.has-warning', + '.help-block', + '.hidden', + '.hidden-lg', + '.hidden-md', + '.hidden-print', + '.hidden-sm', + '.hidden-xs', + '.hide', + '.icon-bar', + '.icon-next', + '.icon-prev', + '.img-circle', + '.img-responsive', + '.img-rounded', + '.fade.in, .collapse.in, .navbar-collapse.in, .modal.in, .modal-backdrop.in, .tooltip.in', + 'td.info, th.info, tr.info', + '.input-lg', + '.input-sm', + '.carousel-inner > .item', + '.label', + '.label-danger', + '.label-default', + '.label-info', + '.label-primary', + '.label-success', + '.label-warning', + '.tooltip.left, .popover.left, .item.left', + '.list-group-item-heading', + '.list-group-item-text', + '.media-bottom', + '.media-heading', + '.media-left', + '.media-list', + '.media-middle', + '.media-object', + '.media-right', + '.navbar-btn', + '.navbar-default', + '.navbar-fixed-bottom', + '.navbar-fixed-top', + '.navbar-form', + '.navbar-header', + '.navbar-inverse', + '.navbar-left', + '.navbar-link', + '.navbar-right', + '.navbar-static-top', + '.navbar-toggle', + '.nav-divider', + '.nav-stacked', + '.nav-tabs-justified', + '.item.next', + '.btn-group.open', + '.page-header', + '.pager', + '.panel', + '.panel-body', + '.panel-collapse', + '.panel-danger', + '.panel-default', + '.panel-footer', + '.panel-group', + '.panel-heading', + '.panel-info', + '.panel-primary', + '.panel-success', + '.panel-title', + '.panel-warning', + '.popover-content', + '.popover-title', + '.item.prev, .carousel-inner > .prev', + '.pager .previous', + '.progress-bar-danger', + '.progress-bar-info', + '.progress-bar-success', + '.progress-bar-warning', + '.progress-striped', + '.pull-left', + '.pull-right', + '.radio label', + '.radio-inline label', + '.row-no-gutters', + 'td.success, th.success, tr.success', + '.table-condensed', + '.thumbnail', + '.tooltip-arrow', + '.tooltip.top, .popover.top', + '.tooltip.top-left', + '.tooltip.top-right', + '.visible-lg', + '.visible-lg-block', + '.visible-lg-inline', + '.visible-lg-inline-block', + '.visible-md', + '.visible-md-block', + '.visible-md-inline', + '.visible-md-inline-block', + '.visible-print', + '.visible-print-block', + '.visible-print-inline', + '.visible-print-inline-block', + '.visible-sm', + '.visible-sm-block', + '.visible-sm-inline', + '.visible-sm-inline-block', + '.visible-xs', + '.visible-xs-block', + '.visible-xs-inline', + '.visible-xs-inline-block', + 'td.warning, th.warning, tr.warning', + '.well', + '.well-lg', + '.well-sm' + ]; + var bs3Usage = $(bs3Selectors.join(', ')); + if (bs3Usage.length) { + reporter('Found usage of CSS classes possibly indicative of Bootstrap 3 and not newer versions.', bs3Usage); + } + }); addLinter('E001', (function () { var MISSING_DOCTYPE = 'Document is missing a DOCTYPE declaration'; var NON_HTML5_DOCTYPE = 'Document declares a non-HTML5 DOCTYPE';