diff --git a/EngineQuailConfig.js b/EngineQuailConfig.js index bc025c1d5..ba2c0d806 100644 --- a/EngineQuailConfig.js +++ b/EngineQuailConfig.js @@ -17,6 +17,7 @@ define( function() { 'aMustNotHaveJavascriptHref', 'aSuspiciousLinkText', 'blockquoteNotUsedForIndentation', + 'colorFontContrast', 'documentVisualListsAreMarkedUp', 'headerH1', 'headerH2', diff --git a/tests/manual/a11ychecker.md b/tests/manual/a11ychecker.md index ecd9dadcd..e2899da8a 100644 --- a/tests/manual/a11ychecker.md +++ b/tests/manual/a11ychecker.md @@ -1,6 +1,6 @@ @bender-include: %TEST_DIR%../_assets/jquery.min.js @bender-ui: collapsed -@bender-ckeditor-plugins: a11ychecker,sourcearea,toolbar,undo,wysiwygarea,clipboard,basicstyles,list,link,format,image,table,floatingspace +@bender-ckeditor-plugins: a11ychecker,sourcearea,toolbar,undo,wysiwygarea,clipboard,basicstyles,list,link,format,image,table,floatingspace,colorbutton,colordialog Play around with Accessiblity Checker. diff --git a/tests/manual/assessments/colorFontContrast.html b/tests/manual/assessments/colorFontContrast.html new file mode 100644 index 000000000..cc2519887 --- /dev/null +++ b/tests/manual/assessments/colorFontContrast.html @@ -0,0 +1,34 @@ + + +
+

Font contrast

+

The following text (white text on a white background) should fail: + + foobar + +

+

The following text should also fail: + + foobar + +

+
+ diff --git a/tests/manual/assessments/colorFontContrast.md b/tests/manual/assessments/colorFontContrast.md new file mode 100644 index 000000000..3be5aee2e --- /dev/null +++ b/tests/manual/assessments/colorFontContrast.md @@ -0,0 +1,16 @@ +@bender-tags: tc, 1.1.1, 237 +@bender-include: %TEST_DIR%../../_assets/jquery.min.js +@bender-ui: collapsed +@bender-ckeditor-plugins: a11ychecker,sourcearea,toolbar,undo,wysiwygarea,basicstyles,format,floatingspace,colorbutton,colordialog + +# colorFontContrast + +1. Focus the first editor. +1. Click on the "Check Accessibility" button. + +## Expected + +* Accessibility Checker finds an error about font having an insufficient contrast ratio. +* Accessibility Checker reports **2** above errors. + +Repeat steps for the second editor. \ No newline at end of file