void () { addTestWithInit("track[default]", "<track default>", compactBooleanAllowed(true)); addTestWithInit("track[default=customValue]", "<track default=\"customValue\">", compactBooleanAllowed(true)); addTestWithInit("div.editor[a. title=test]", "<div class=\"editor\" a title=\"test\">|</div>", compactBooleanAllowed(true)); addTestWithInit("b[a.]", "<b a=\"a\"></b>", compactBooleanAllowed(false)); addTestWithInit("track[default]", "<track default=\"default\">", compactBooleanAllowed(false)); addTestWithInit("button:d", "<button disabled></button>", compactBooleanAllowed(true)); addTestWithInit("button:d", "<button disabled=\"disabled\"></button>", compactBooleanAllowed(false)); addTestWithInit("input[title]", "<input type=\"text\" title=\"\">", null); addTestWithInit("input[title]", "<input type=\"text\" title>", (fixture, testRootDisposable) -> { final HtmlUnknownBooleanAttributeInspection inspection = new HtmlUnknownBooleanAttributeInspection(); inspection.updateAdditionalEntries("title", testRootDisposable); fixture.enableInspections(inspection); }); }