From 278268719df7207162c0afe8a9ed3a2a39ed2077 Mon Sep 17 00:00:00 2001 From: Kathy Eng Date: Fri, 28 May 2021 17:20:45 -0400 Subject: [PATCH 1/8] For Baseline Tests 15.1 and 15.2 --- testcases.md | 7 ++++ testcases/TC15.1-2-fail-1.md | 55 ++++++++++++++++++++++++++++ testcases/TC15.1-3-fail-1.md | 56 +++++++++++++++++++++++++++++ testcases/TC15.1-all-pass-1.md | 56 +++++++++++++++++++++++++++++ testcases/TC15.2-2-fail-1.md | 55 ++++++++++++++++++++++++++++ testcases/TC15.2-3-fail-1.md | 56 +++++++++++++++++++++++++++++ testcases/TC15.2-all-pass-1.md | 56 +++++++++++++++++++++++++++++ testfiles/TF10/10.1-all-pass-1.html | 2 +- testfiles/TF15/15.1-2-fail-1.html | 10 ++++++ testfiles/TF15/15.1-3-fail-1.html | 10 ++++++ testfiles/TF15/15.1-all-pass-1.html | 10 ++++++ testfiles/TF15/15.2-2-fail-1.html | 15 ++++++++ testfiles/TF15/15.2-3-fail-1.html | 15 ++++++++ testfiles/TF15/15.2-all-pass-1.html | 15 ++++++++ 14 files changed, 417 insertions(+), 1 deletion(-) create mode 100644 testcases/TC15.1-2-fail-1.md create mode 100644 testcases/TC15.1-3-fail-1.md create mode 100644 testcases/TC15.1-all-pass-1.md create mode 100644 testcases/TC15.2-2-fail-1.md create mode 100644 testcases/TC15.2-3-fail-1.md create mode 100644 testcases/TC15.2-all-pass-1.md create mode 100644 testfiles/TF15/15.1-2-fail-1.html create mode 100644 testfiles/TF15/15.1-3-fail-1.html create mode 100644 testfiles/TF15/15.1-all-pass-1.html create mode 100644 testfiles/TF15/15.2-2-fail-1.html create mode 100644 testfiles/TF15/15.2-3-fail-1.html create mode 100644 testfiles/TF15/15.2-all-pass-1.html diff --git a/testcases.md b/testcases.md index 979e1efb..764b9ba8 100644 --- a/testcases.md +++ b/testcases.md @@ -28,3 +28,10 @@ Test Case documents are organized by Baseline Test (each serving as a Test Scena * [Contrast - insufficient contrast ratio for small text (TC08.1-2-fail-1)](testcases/TC08.1-2-fail-1.html) * `10.` Forms * [Input text element: no accessible name or description (TC10.1-1-fail-1)](testcases/TC10.1-1-fail-1.html) +* `15.` Language + * [Language of Page: English (TC15.1-all-pass-1)](testcases/TC15.1-all-pass-1.html) + * [Language of Page: not identified (TC15.1-2-fail-1)](testcases/TC15.1-2-fail-1.html) + * [Language of Page: not French (TC15.1-3-fail-1)](testcases/TC15.1-3-fail-1.html) + * [Language of Parts: French (TC15.2-all-pass-1)](testcases/TC15.2-all-pass-1.html) + * [Language of Parts: not identified (TC15.2-2-fail-1)](testcases/TC15.2-2-fail-1.html) + * [Language of Parts: not Spanish (TC15.2-3-fail-1)](testcases/TC15.2-3-fail-1.html) \ No newline at end of file diff --git a/testcases/TC15.1-2-fail-1.md b/testcases/TC15.1-2-fail-1.md new file mode 100644 index 00000000..3c3feb45 --- /dev/null +++ b/testcases/TC15.1-2-fail-1.md @@ -0,0 +1,55 @@ +--- +# The layout must be 'testcase'; DO NOT Change +layout: testcase + +# Brief, descriptive title for the test case +title: Language of Page - not identified + + +# The Test Case ID should follow the pattern: +# TC[Baseline Test Procedure #]-[Test Instruction #]- +# [Expected Result (pass/fail/dna)]-[example #], e.g., TC05.1-1-fail-1 +tcid: TC15.1-2-fail-1 + +# Description of the Test Case, the included code sample, test considerations, +# and rationale for the expected result according to the applicable ICT +# Baseline test +descr: | + Detect the existence of lang attribute for the <html> tag. + + The code sample provides a page in English with no lang attribute on the <html> tag. A successful test should identify a FAIL for Baseline 15.1-LanguagePage. + +# Reference and link to the applicable ICT Baseline test +app-baseline: | + [15.1 Test Procedure for Language of Page](https://section508coordinators.github.io/ICTTestingBaseline/15Language.html#151-test-procedure-for-language-of-page) + + **Baseline Test ID:** 15.1-LanguagePage + + **Test Instruction:** 2 + +# Expected result that the ICT Baseline would predict +# [Pass | Fail | DNA] +result: FAIL + +# Brief description of the rationale for the expected result +result-descr: The English page's <html> tag has no lang attribute. + +# URL for the code sample +# In the sample code file, add id="tc_code" to the +# element that contains the relevant code snippet. +# +# Then upload the code sample to the 'testfiles' folder +# and provide the link (and only the url) below. +sample: /testfiles/TF15/15.1-2-fail-1.html + +# Table of test instructions, including the following table headers: +# Test Instruction #; Instruction Detail; Expected Test Case Result +# +# Include the table in the content section below +--- +| Test Instruction | Instruction Detail | Expected Test Case Result | +|------------------|--------------------|---------------------------| +| **IC-1** | Pages with text (including text alternatives).| Applicable; page has text. | +| **15.1-1** | Identify the default human language of the page by reviewing the page content. The default human language of the page is the language in which most of the content is presented. | Page language is English. | +| **15.1-2** | Check that the lang attribute is defined on the `` tag for the page. [SC 3.1.1] | Fail: `` has no `lang` attribute | +| **Result** | If any of the above checks fail, then Baseline Test 15.1-LanguagePage fails. | Fail: 15.1-2 fails | \ No newline at end of file diff --git a/testcases/TC15.1-3-fail-1.md b/testcases/TC15.1-3-fail-1.md new file mode 100644 index 00000000..69a32b30 --- /dev/null +++ b/testcases/TC15.1-3-fail-1.md @@ -0,0 +1,56 @@ +--- +# The layout must be 'testcase'; DO NOT Change +layout: testcase + +# Brief, descriptive title for the test case +title: Language of Page - not French + + +# The Test Case ID should follow the pattern: +# TC[Baseline Test Procedure #]-[Test Instruction #]- +# [Expected Result (pass/fail/dna)]-[example #], e.g., TC05.1-1-fail-1 +tcid: TC15.1-3-fail-1 + +# Description of the Test Case, the included code sample, test considerations, +# and rationale for the expected result according to the applicable ICT +# Baseline test +descr: | + Detect the existence of lang attribute on the <html> tag. Determine if the value of the lang attribute is correct for the language for the page. The value must also be identified in the Internet Assigned Numbers Authority's IANA Language subtag registry. + + The code sample provides a page in English with the language incorrectly identified as French. A successful test should identify a FAIL for Baseline 15.1-LanguagePage. + +# Reference and link to the applicable ICT Baseline test +app-baseline: | + [15.1 Test Procedure for Language of Page](https://section508coordinators.github.io/ICTTestingBaseline/15Language.html#151-test-procedure-for-language-of-page) + + **Baseline Test ID:** 15.1-LanguagePage + + **Test Instruction:** 3 + +# Expected result that the ICT Baseline would predict +# [Pass | Fail | DNA] +result: FAIL + +# Brief description of the rationale for the expected result +result-descr: The English page's html tag has lang="fr" which is not the correct value. + +# URL for the code sample +# In the sample code file, add id="tc_code" to the +# element that contains the relevant code snippet. +# +# Then upload the code sample to the 'testfiles' folder +# and provide the link (and only the url) below. +sample: /testfiles/TF15/15.1-3-fail-1.html + +# Table of test instructions, including the following table headers: +# Test Instruction #; Instruction Detail; Expected Test Case Result +# +# Include the table in the content section below +--- +| Test Instruction | Instruction Detail | Expected Test Case Result | +|------------------|--------------------|---------------------------| +| **IC-1** | Pages with text (including text alternatives).| Applicable; page has text. | +| **15.1-1** | Identify the default human language of the page by reviewing the page content. The default human language of the page is the language in which most of the content is presented. | Page language is English. | +| **15.1-2** | Check that the lang attribute is defined on the `` tag for the page. [SC 3.1.1] | Pass: `` | +| **15.1-3** | Check that the value of the `lang` attribute matches the determined default human language for the page. [SC 3.1.1] | Fail: "en" is the correct language subtag for this English page | +| **Result** | If any of the above checks fail, then Baseline Test 15.1-LanguagePage fails. | Fail: 15.1-3 fails | \ No newline at end of file diff --git a/testcases/TC15.1-all-pass-1.md b/testcases/TC15.1-all-pass-1.md new file mode 100644 index 00000000..bbf6295b --- /dev/null +++ b/testcases/TC15.1-all-pass-1.md @@ -0,0 +1,56 @@ +--- +# The layout must be 'testcase'; DO NOT Change +layout: testcase + +# Brief, descriptive title for the test case +title: Language of Page - English + + +# The Test Case ID should follow the pattern: +# TC[Baseline Test Procedure #]-[Test Instruction #]- +# [Expected Result (pass/fail/dna)]-[example #], e.g., TC05.1-1-fail-1 +tcid: TC15.1-all-pass-1 + +# Description of the Test Case, the included code sample, test considerations, +# and rationale for the expected result according to the applicable ICT +# Baseline test +descr: | + Detect the existence of lang attribute on the <html> tag. Determine if the value of the lang attribute is correct for the language for the page. The value must also be identified in the Internet Assigned Numbers Authority's IANA Language subtag registry. + + The code sample provides a page in English with the language correctly identified. A successful test should identify a PASS for Baseline 15.1-LanguagePage. + +# Reference and link to the applicable ICT Baseline test +app-baseline: | + [15.1 Test Procedure for Language of Page](https://section508coordinators.github.io/ICTTestingBaseline/15Language.html#151-test-procedure-for-language-of-page) + + **Baseline Test ID:** 15.1-LanguagePage + + **Test Instruction:** All + +# Expected result that the ICT Baseline would predict +# [Pass | Fail | DNA] +result: PASS + +# Brief description of the rationale for the expected result +result-descr: The page's <html> tag has lang="en" correctly identified. + +# URL for the code sample +# In the sample code file, add id="tc_code" to the +# element that contains the relevant code snippet. +# +# Then upload the code sample to the 'testfiles' folder +# and provide the link (and only the url) below. +sample: /testfiles/TF15/15.1-all-pass-1.html + +# Table of test instructions, including the following table headers: +# Test Instruction #; Instruction Detail; Expected Test Case Result +# +# Include the table in the content section below +--- +| Test Instruction | Instruction Detail | Expected Test Case Result | +|------------------|--------------------|---------------------------| +| **IC-1** | Pages with text (including text alternatives).| Applicable; page has text. | +| **15.1-1** | Identify the default human language of the page by reviewing the page content. The default human language of the page is the language in which most of the content is presented. | Page language is English. | +| **15.1-2** | Check that the `lang` attribute is defined on the `` tag for the page. [SC 3.1.1] | Pass: `` | +| **15.1-3** | Check that the value of the `lang` attribute matches the determined default human language for the page. [SC 3.1.1] | Pass: "en" is the correct language subtag for English | +| **Result** | If any of the above checks fail, then Baseline Test 15.1-LanguagePage fails. | All checks PASS. | \ No newline at end of file diff --git a/testcases/TC15.2-2-fail-1.md b/testcases/TC15.2-2-fail-1.md new file mode 100644 index 00000000..bfd1312f --- /dev/null +++ b/testcases/TC15.2-2-fail-1.md @@ -0,0 +1,55 @@ +--- +# The layout must be 'testcase'; DO NOT Change +layout: testcase + +# Brief, descriptive title for the test case +title: Language of Parts - not identified + + +# The Test Case ID should follow the pattern: +# TC[Baseline Test Procedure #]-[Test Instruction #]- +# [Expected Result (pass/fail/dna)]-[example #], e.g., TC05.1-1-fail-1 +tcid: TC15.2-2-fail-1 + +# Description of the Test Case, the included code sample, test considerations, +# and rationale for the expected result according to the applicable ICT +# Baseline test +descr: | + Detect the existence of lang attribute for text (part) that differs from the default human language of the page. + + The code sample provides a page in English with a part in French, with the no language identified for the French part. A successful test should identify a FAIL for Baseline 15.2-LanguagePart. + +# Reference and link to the applicable ICT Baseline test +app-baseline: | + [15.2 Test Procedure for Language of Parts](https://section508coordinators.github.io/ICTTestingBaseline/15Language.html#152-test-procedure-for-language-of-parts) + + **Baseline Test ID:** 15.2-LanguagePart + + **Test Instruction:** 2 + +# Expected result that the ICT Baseline would predict +# [Pass | Fail | DNA] +result: FAIL + +# Brief description of the rationale for the expected result +result-descr: The French part has no lang attribute. + +# URL for the code sample +# In the sample code file, add id="tc_code" to the +# element that contains the relevant code snippet. +# +# Then upload the code sample to the 'testfiles' folder +# and provide the link (and only the url) below. +sample: /testfiles/TF15/15.2-2-fail-1.html + +# Table of test instructions, including the following table headers: +# Test Instruction #; Instruction Detail; Expected Test Case Result +# +# Include the table in the content section below +--- +| Test Instruction | Instruction Detail | Expected Test Case Result | +|------------------|--------------------|---------------------------| +| **IC-1** | Text content that differs from the default human language of the page including alternative text for non-text content.| Applicable; page has French text on an English page. | +| **15.2-1** | Identify the human language of the text content that differs from the default human language of the page. | French | +| **15.1-2** | Check that the `lang` attribute is specified for any HTML element that contains a content segment that differs from the default human language of the page. [SC 3.1.2] | Fail: French part's `
` has no `lang` attribute | +| **Result** | If any of the above checks fail, then Baseline Test 15.1-LanguagePage fails. | Fail: 15.1-2 fails. | \ No newline at end of file diff --git a/testcases/TC15.2-3-fail-1.md b/testcases/TC15.2-3-fail-1.md new file mode 100644 index 00000000..b105d385 --- /dev/null +++ b/testcases/TC15.2-3-fail-1.md @@ -0,0 +1,56 @@ +--- +# The layout must be 'testcase'; DO NOT Change +layout: testcase + +# Brief, descriptive title for the test case +title: Language of Parts - not Spanish + + +# The Test Case ID should follow the pattern: +# TC[Baseline Test Procedure #]-[Test Instruction #]- +# [Expected Result (pass/fail/dna)]-[example #], e.g., TC05.1-1-fail-1 +tcid: TC15.2-3-fail-1 + +# Description of the Test Case, the included code sample, test considerations, +# and rationale for the expected result according to the applicable ICT +# Baseline test +descr: | + Detect the existence of lang attribute for text (part) that differs from the default human language of the page. Determine if the value of the lang attribute is correct for the language of the part. The value must also be identified in the Internet Assigned Numbers Authority's IANA Language subtag registry. + + The code sample provides a page in English with a part in French, with the language incorrectly identified as Spanish. A successful test should identify a FAIL for Baseline 15.2-LanguagePart. + +# Reference and link to the applicable ICT Baseline test +app-baseline: | + [15.2 Test Procedure for Language of Parts](https://section508coordinators.github.io/ICTTestingBaseline/15Language.html#152-test-procedure-for-language-of-parts) + + **Baseline Test ID:** 15.2-LanguagePart + + **Test Instruction:** 3 + +# Expected result that the ICT Baseline would predict +# [Pass | Fail | DNA] +result: FAIL + +# Brief description of the rationale for the expected result +result-descr: The French part has incorrect lang="es" attribute. + +# URL for the code sample +# In the sample code file, add id="tc_code" to the +# element that contains the relevant code snippet. +# +# Then upload the code sample to the 'testfiles' folder +# and provide the link (and only the url) below. +sample: /testfiles/TF15/15.2-3-fail-1.html + +# Table of test instructions, including the following table headers: +# Test Instruction #; Instruction Detail; Expected Test Case Result +# +# Include the table in the content section below +--- +| Test Instruction | Instruction Detail | Expected Test Case Result | +|------------------|--------------------|---------------------------| +| **IC-1** | Text content that differs from the default human language of the page including alternative text for non-text content.| Applicable; page has French text on an English page. | +| **15.2-1** | Identify the human language of the text content that differs from the default human language of the page. | French | +| **15.1-2** | Check that the `lang` attribute is specified for any HTML element that contains a content segment that differs from the default human language of the page. [SC 3.1.2] | Pass: `
` | +| **15.1-3** | Check that the value of the `lang` attribute is correctly defined for the content segment. [SC 3.1.2] | Fail: "es" is not the correct language subtag for French | +| **Result** | If any of the above checks fail, then Baseline Test 15.1-LanguagePage fails. | Fail: 15.1-3 fails. | \ No newline at end of file diff --git a/testcases/TC15.2-all-pass-1.md b/testcases/TC15.2-all-pass-1.md new file mode 100644 index 00000000..aed2fb0b --- /dev/null +++ b/testcases/TC15.2-all-pass-1.md @@ -0,0 +1,56 @@ +--- +# The layout must be 'testcase'; DO NOT Change +layout: testcase + +# Brief, descriptive title for the test case +title: Language of Parts - French + + +# The Test Case ID should follow the pattern: +# TC[Baseline Test Procedure #]-[Test Instruction #]- +# [Expected Result (pass/fail/dna)]-[example #], e.g., TC05.1-1-fail-1 +tcid: TC15.2-all-pass-1 + +# Description of the Test Case, the included code sample, test considerations, +# and rationale for the expected result according to the applicable ICT +# Baseline test +descr: | + Detect the existence of lang attribute for text (part) that differs from the default human language of the page. Determine if the value of the lang attribute is correct for the language of the part. The value must also be identified in the Internet Assigned Numbers Authority's IANA Language subtag registry. + + The code sample provides a page in English with a part in French, with the language correctly identified. A successful test should identify a PASS for Baseline 15.2-LanguagePart. + +# Reference and link to the applicable ICT Baseline test +app-baseline: | + [15.2 Test Procedure for Language of Parts](https://section508coordinators.github.io/ICTTestingBaseline/15Language.html#152-test-procedure-for-language-of-parts) + + **Baseline Test ID:** 15.2-LanguagePart + + **Test Instruction:** All + +# Expected result that the ICT Baseline would predict +# [Pass | Fail | DNA] +result: PASS + +# Brief description of the rationale for the expected result +result-descr: The French part has correct lang="fr" attribute. + +# URL for the code sample +# In the sample code file, add id="tc_code" to the +# element that contains the relevant code snippet. +# +# Then upload the code sample to the 'testfiles' folder +# and provide the link (and only the url) below. +sample: /testfiles/TF15/15.2-all-pass-1.html + +# Table of test instructions, including the following table headers: +# Test Instruction #; Instruction Detail; Expected Test Case Result +# +# Include the table in the content section below +--- +| Test Instruction | Instruction Detail | Expected Test Case Result | +|------------------|--------------------|---------------------------| +| **IC-1** | Text content that differs from the default human language of the page including alternative text for non-text content.| Applicable; page has French text on an English page. | +| **15.2-1** | Identify the human language of the text content that differs from the default human language of the page. | French | +| **15.1-2** | Check that the `lang` attribute is specified for any HTML element that contains a content segment that differs from the default human language of the page. [SC 3.1.2] | Pass: `
` | +| **15.1-3** | Check that the value of the `lang` attribute is correctly defined for the content segment. [SC 3.1.2] | Pass: "fr" is the correct language subtag for French | +| **Result** | If any of the above checks fail, then Baseline Test 15.1-LanguagePage fails. | All checks PASS. | \ No newline at end of file diff --git a/testfiles/TF10/10.1-all-pass-1.html b/testfiles/TF10/10.1-all-pass-1.html index e39f99fb..3c0892a5 100644 --- a/testfiles/TF10/10.1-all-pass-1.html +++ b/testfiles/TF10/10.1-all-pass-1.html @@ -2,7 +2,7 @@ -10-003-pass +10.1-all-pass-1 diff --git a/testfiles/TF15/15.1-2-fail-1.html b/testfiles/TF15/15.1-2-fail-1.html new file mode 100644 index 00000000..670aa10c --- /dev/null +++ b/testfiles/TF15/15.1-2-fail-1.html @@ -0,0 +1,10 @@ + + + + + 15.1-2-fail-1 + + + This page is in English. + + \ No newline at end of file diff --git a/testfiles/TF15/15.1-3-fail-1.html b/testfiles/TF15/15.1-3-fail-1.html new file mode 100644 index 00000000..7759ff06 --- /dev/null +++ b/testfiles/TF15/15.1-3-fail-1.html @@ -0,0 +1,10 @@ + + + + + 15.1-3-fail-1 + + + This page is in English. + + \ No newline at end of file diff --git a/testfiles/TF15/15.1-all-pass-1.html b/testfiles/TF15/15.1-all-pass-1.html new file mode 100644 index 00000000..a9623797 --- /dev/null +++ b/testfiles/TF15/15.1-all-pass-1.html @@ -0,0 +1,10 @@ + + + + + 15.1-all-pass-1 + + + This page is in English. + + \ No newline at end of file diff --git a/testfiles/TF15/15.2-2-fail-1.html b/testfiles/TF15/15.2-2-fail-1.html new file mode 100644 index 00000000..574bbc27 --- /dev/null +++ b/testfiles/TF15/15.2-2-fail-1.html @@ -0,0 +1,15 @@ + + + + + 15.2-all-pass-1 + + +

If you were in France, how would you say "they wandered into a strange Tiki bar on the edge of the small beach town"?

+
+
+ Ils ont trouvé un étrange bar Tiki aux abords de la petite ville balnéaire. +
+
+ + \ No newline at end of file diff --git a/testfiles/TF15/15.2-3-fail-1.html b/testfiles/TF15/15.2-3-fail-1.html new file mode 100644 index 00000000..ff07996d --- /dev/null +++ b/testfiles/TF15/15.2-3-fail-1.html @@ -0,0 +1,15 @@ + + + + + 15.2-all-pass-1 + + +

If you were in France, how would you say "they wandered into a strange Tiki bar on the edge of the small beach town"?

+
+
+ Ils ont trouvé un étrange bar Tiki aux abords de la petite ville balnéaire. +
+
+ + \ No newline at end of file diff --git a/testfiles/TF15/15.2-all-pass-1.html b/testfiles/TF15/15.2-all-pass-1.html new file mode 100644 index 00000000..1569d298 --- /dev/null +++ b/testfiles/TF15/15.2-all-pass-1.html @@ -0,0 +1,15 @@ + + + + + 15.2-all-pass-1 + + +

If you were in France, how would you say "they wandered into a strange Tiki bar on the edge of the small beach town"?

+
+
+ Ils ont trouvé un étrange bar Tiki aux abords de la petite ville balnéaire. +
+
+ + \ No newline at end of file From 37f8402058baae7803f1826f35308d64cfedb33f Mon Sep 17 00:00:00 2001 From: Kathy Eng Date: Mon, 7 Jun 2021 18:04:28 -0400 Subject: [PATCH 2/8] additional TC and fixes for page titles --- testcases.md | 5 +- testcases/TC15.1-2-fail-2.md | 55 +++++++++++++++++++ ...{TC15.2-3-fail-1.md => TC15.2-3-fail-2.md} | 4 +- testcases/TC15.2-ic-dna-1.md | 53 ++++++++++++++++++ testfiles/TF15/15.1-2-fail-2.html | 10 ++++ testfiles/TF15/15.2-2-fail-1.html | 2 +- ...{15.2-3-fail-1.html => 15.2-3-fail-2.html} | 2 +- testfiles/TF15/15.2-ic-dna-1.html | 12 ++++ 8 files changed, 138 insertions(+), 5 deletions(-) create mode 100644 testcases/TC15.1-2-fail-2.md rename testcases/{TC15.2-3-fail-1.md => TC15.2-3-fail-2.md} (97%) create mode 100644 testcases/TC15.2-ic-dna-1.md create mode 100644 testfiles/TF15/15.1-2-fail-2.html rename testfiles/TF15/{15.2-3-fail-1.html => 15.2-3-fail-2.html} (91%) create mode 100644 testfiles/TF15/15.2-ic-dna-1.html diff --git a/testcases.md b/testcases.md index 764b9ba8..cd384178 100644 --- a/testcases.md +++ b/testcases.md @@ -31,7 +31,10 @@ Test Case documents are organized by Baseline Test (each serving as a Test Scena * `15.` Language * [Language of Page: English (TC15.1-all-pass-1)](testcases/TC15.1-all-pass-1.html) * [Language of Page: not identified (TC15.1-2-fail-1)](testcases/TC15.1-2-fail-1.html) + * [Language of Page: not identified on `<`html`>` tag (TC15.1-2-fail-2)](testcases/TC15.1-2-fail-2.html) * [Language of Page: not French (TC15.1-3-fail-1)](testcases/TC15.1-3-fail-1.html) * [Language of Parts: French (TC15.2-all-pass-1)](testcases/TC15.2-all-pass-1.html) * [Language of Parts: not identified (TC15.2-2-fail-1)](testcases/TC15.2-2-fail-1.html) - * [Language of Parts: not Spanish (TC15.2-3-fail-1)](testcases/TC15.2-3-fail-1.html) \ No newline at end of file + * [Language of Parts: not Spanish (TC15.2-3-fail-2)](testcases/TC15.2-3-fail-2.html) + * [Language of Parts: Not Applicable (TC15.2-ic-dna-1)](testcases/TC15.2-ic-dna-1.html) + \ No newline at end of file diff --git a/testcases/TC15.1-2-fail-2.md b/testcases/TC15.1-2-fail-2.md new file mode 100644 index 00000000..f68a7cb2 --- /dev/null +++ b/testcases/TC15.1-2-fail-2.md @@ -0,0 +1,55 @@ +--- +# The layout must be 'testcase'; DO NOT Change +layout: testcase + +# Brief, descriptive title for the test case +title: Language of Page - not identified on HTML tag + + +# The Test Case ID should follow the pattern: +# TC[Baseline Test Procedure #]-[Test Instruction #]- +# [Expected Result (pass/fail/dna)]-[example #], e.g., TC05.1-1-fail-1 +tcid: TC15.1-2-fail-2 + +# Description of the Test Case, the included code sample, test considerations, +# and rationale for the expected result according to the applicable ICT +# Baseline test +descr: | + Detect the existence of lang attribute for the <html> tag. + + The code sample provides a page in English with no lang attribute on the <html> tag. Instead, it is the lange is on the <head> tag. A successful test should identify a FAIL for Baseline 15.1-LanguagePage. + +# Reference and link to the applicable ICT Baseline test +app-baseline: | + [15.1 Test Procedure for Language of Page](https://section508coordinators.github.io/ICTTestingBaseline/15Language.html#151-test-procedure-for-language-of-page) + + **Baseline Test ID:** 15.1-LanguagePage + + **Test Instruction:** 2 + +# Expected result that the ICT Baseline would predict +# [Pass | Fail | DNA] +result: FAIL + +# Brief description of the rationale for the expected result +result-descr: The English page's <html> tag has no lang attribute. The lang attribute is on the a <head> tag, which is incorrect. + +# URL for the code sample +# In the sample code file, add id="tc_code" to the +# element that contains the relevant code snippet. +# +# Then upload the code sample to the 'testfiles' folder +# and provide the link (and only the url) below. +sample: /testfiles/TF15/15.1-2-fail-2.html + +# Table of test instructions, including the following table headers: +# Test Instruction #; Instruction Detail; Expected Test Case Result +# +# Include the table in the content section below +--- +| Test Instruction | Instruction Detail | Expected Test Case Result | +|------------------|--------------------|---------------------------| +| **IC-1** | Pages with text (including text alternatives).| Applicable; page has text. | +| **15.1-1** | Identify the default human language of the page by reviewing the page content. The default human language of the page is the language in which most of the content is presented. | Page language is English. | +| **15.1-2** | Check that the lang attribute is defined on the `` tag for the page. [SC 3.1.1] | Fail: `` has no `lang` attribute | +| **Result** | If any of the above checks fail, then Baseline Test 15.1-LanguagePage fails. | Fail: 15.1-2 fails | \ No newline at end of file diff --git a/testcases/TC15.2-3-fail-1.md b/testcases/TC15.2-3-fail-2.md similarity index 97% rename from testcases/TC15.2-3-fail-1.md rename to testcases/TC15.2-3-fail-2.md index b105d385..7171f3ac 100644 --- a/testcases/TC15.2-3-fail-1.md +++ b/testcases/TC15.2-3-fail-2.md @@ -9,7 +9,7 @@ title: Language of Parts - not Spanish # The Test Case ID should follow the pattern: # TC[Baseline Test Procedure #]-[Test Instruction #]- # [Expected Result (pass/fail/dna)]-[example #], e.g., TC05.1-1-fail-1 -tcid: TC15.2-3-fail-1 +tcid: TC15.2-3-fail-2 # Description of the Test Case, the included code sample, test considerations, # and rationale for the expected result according to the applicable ICT @@ -40,7 +40,7 @@ result-descr: The French part has incorrect lang="es" attribute. # # Then upload the code sample to the 'testfiles' folder # and provide the link (and only the url) below. -sample: /testfiles/TF15/15.2-3-fail-1.html +sample: /testfiles/TF15/15.2-3-fail-2.html # Table of test instructions, including the following table headers: # Test Instruction #; Instruction Detail; Expected Test Case Result diff --git a/testcases/TC15.2-ic-dna-1.md b/testcases/TC15.2-ic-dna-1.md new file mode 100644 index 00000000..1219ec9b --- /dev/null +++ b/testcases/TC15.2-ic-dna-1.md @@ -0,0 +1,53 @@ +--- +# The layout must be 'testcase'; DO NOT Change +layout: testcase + +# Brief, descriptive title for the test case +title: Language of Parts - Not Applicable + + +# The Test Case ID should follow the pattern: +# TC[Baseline Test Procedure #]-[Test Instruction #]- +# [Expected Result (pass/fail/dna)]-[example #], e.g., TC05.1-1-fail-1 +tcid: TC15.2-ic-dna-1 + +# Description of the Test Case, the included code sample, test considerations, +# and rationale for the expected result according to the applicable ICT +# Baseline test +descr: | + Detect the existence of lang attribute for text (part) that differs from the default human language of the page. + + The code sample provides a page that is only in English. A successful test should identify a DOES NOT APPLY for Baseline 15.2-LanguagePart. + +# Reference and link to the applicable ICT Baseline test +app-baseline: | + [15.2 Test Procedure for Language of Parts](https://section508coordinators.github.io/ICTTestingBaseline/15Language.html#152-test-procedure-for-language-of-parts) + + **Baseline Test ID:** 15.2-LanguagePart + + **Test Instruction:** Identify Content + +# Expected result that the ICT Baseline would predict +# [Pass | Fail | DNA] +result: DNA + +# Brief description of the rationale for the expected result +result-descr: The page is only in one language (English). + +# URL for the code sample +# In the sample code file, add id="tc_code" to the +# element that contains the relevant code snippet. +# +# Then upload the code sample to the 'testfiles' folder +# and provide the link (and only the url) below. +sample: /testfiles/TF15/15.2-ic-dna-1.html + +# Table of test instructions, including the following table headers: +# Test Instruction #; Instruction Detail; Expected Test Case Result +# +# Include the table in the content section below +--- +| Test Instruction | Instruction Detail | Expected Test Case Result | +|------------------|--------------------|---------------------------| +| **IC-1** | Text content that differs from the default human language of the page including alternative text for non-text content.| Not found: page content is only in one language | +| **Result** | | Does Not Apply | \ No newline at end of file diff --git a/testfiles/TF15/15.1-2-fail-2.html b/testfiles/TF15/15.1-2-fail-2.html new file mode 100644 index 00000000..54335bc3 --- /dev/null +++ b/testfiles/TF15/15.1-2-fail-2.html @@ -0,0 +1,10 @@ + + + + + 15.1-2-fail-2 + + + This page is in English. + + \ No newline at end of file diff --git a/testfiles/TF15/15.2-2-fail-1.html b/testfiles/TF15/15.2-2-fail-1.html index 574bbc27..3d1edefb 100644 --- a/testfiles/TF15/15.2-2-fail-1.html +++ b/testfiles/TF15/15.2-2-fail-1.html @@ -2,7 +2,7 @@ - 15.2-all-pass-1 + 15.2-2-fail-1

If you were in France, how would you say "they wandered into a strange Tiki bar on the edge of the small beach town"?

diff --git a/testfiles/TF15/15.2-3-fail-1.html b/testfiles/TF15/15.2-3-fail-2.html similarity index 91% rename from testfiles/TF15/15.2-3-fail-1.html rename to testfiles/TF15/15.2-3-fail-2.html index ff07996d..103bb117 100644 --- a/testfiles/TF15/15.2-3-fail-1.html +++ b/testfiles/TF15/15.2-3-fail-2.html @@ -2,7 +2,7 @@ - 15.2-all-pass-1 + 15.2-3-pfail-2

If you were in France, how would you say "they wandered into a strange Tiki bar on the edge of the small beach town"?

diff --git a/testfiles/TF15/15.2-ic-dna-1.html b/testfiles/TF15/15.2-ic-dna-1.html new file mode 100644 index 00000000..9669e0ca --- /dev/null +++ b/testfiles/TF15/15.2-ic-dna-1.html @@ -0,0 +1,12 @@ + + + + + 15.2-ic-dna-1 + + +
+

This page is only in English.

+
+ + \ No newline at end of file From 3e88fab1169b9d4835b411dbe22698bdd08ea801 Mon Sep 17 00:00:00 2001 From: Kathy Eng Date: Mon, 7 Jun 2021 18:23:12 -0400 Subject: [PATCH 3/8] TC names updated --- testcases.md | 10 +++++----- testcases/TC15.1-2-fail-2.md | 4 ++-- testcases/TC15.1-3-fail-1.md | 4 ++-- testcases/TC15.1-all-pass-1.md | 2 +- testcases/TC15.2-3-fail-2.md | 6 +++--- testcases/TC15.2-ic-dna-1.md | 4 ++-- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/testcases.md b/testcases.md index cd384178..0ce0c2f5 100644 --- a/testcases.md +++ b/testcases.md @@ -29,12 +29,12 @@ Test Case documents are organized by Baseline Test (each serving as a Test Scena * `10.` Forms * [Input text element: no accessible name or description (TC10.1-1-fail-1)](testcases/TC10.1-1-fail-1.html) * `15.` Language - * [Language of Page: English (TC15.1-all-pass-1)](testcases/TC15.1-all-pass-1.html) + * [Language of Page: Pass (TC15.1-all-pass-1)](testcases/TC15.1-all-pass-1.html) * [Language of Page: not identified (TC15.1-2-fail-1)](testcases/TC15.1-2-fail-1.html) - * [Language of Page: not identified on `<`html`>` tag (TC15.1-2-fail-2)](testcases/TC15.1-2-fail-2.html) - * [Language of Page: not French (TC15.1-3-fail-1)](testcases/TC15.1-3-fail-1.html) - * [Language of Parts: French (TC15.2-all-pass-1)](testcases/TC15.2-all-pass-1.html) + * [Language of Page: lang attribute on wrong tag (TC15.1-2-fail-2)](testcases/TC15.1-2-fail-2.html) + * [Language of Page: wrong language identified (TC15.1-3-fail-1)](testcases/TC15.1-3-fail-1.html) + * [Language of Parts: Pass (TC15.2-all-pass-1)](testcases/TC15.2-all-pass-1.html) * [Language of Parts: not identified (TC15.2-2-fail-1)](testcases/TC15.2-2-fail-1.html) - * [Language of Parts: not Spanish (TC15.2-3-fail-2)](testcases/TC15.2-3-fail-2.html) + * [Language of Parts: Incorrect language identified (TC15.2-3-fail-2)](testcases/TC15.2-3-fail-2.html) * [Language of Parts: Not Applicable (TC15.2-ic-dna-1)](testcases/TC15.2-ic-dna-1.html) \ No newline at end of file diff --git a/testcases/TC15.1-2-fail-2.md b/testcases/TC15.1-2-fail-2.md index f68a7cb2..0e7eb5a7 100644 --- a/testcases/TC15.1-2-fail-2.md +++ b/testcases/TC15.1-2-fail-2.md @@ -3,7 +3,7 @@ layout: testcase # Brief, descriptive title for the test case -title: Language of Page - not identified on HTML tag +title: Language of Page - lang attribute on wrong tag # The Test Case ID should follow the pattern: @@ -17,7 +17,7 @@ tcid: TC15.1-2-fail-2 descr: | Detect the existence of lang attribute for the <html> tag. - The code sample provides a page in English with no lang attribute on the <html> tag. Instead, it is the lange is on the <head> tag. A successful test should identify a FAIL for Baseline 15.1-LanguagePage. + The code sample provides a page in English with no lang attribute on the <html> tag. Instead, the lang attribute is on the <head> tag. A successful test should identify a FAIL for Baseline 15.1-LanguagePage. # Reference and link to the applicable ICT Baseline test app-baseline: | diff --git a/testcases/TC15.1-3-fail-1.md b/testcases/TC15.1-3-fail-1.md index 69a32b30..434fedc7 100644 --- a/testcases/TC15.1-3-fail-1.md +++ b/testcases/TC15.1-3-fail-1.md @@ -3,7 +3,7 @@ layout: testcase # Brief, descriptive title for the test case -title: Language of Page - not French +title: Language of Page - wrong language identified # The Test Case ID should follow the pattern: @@ -17,7 +17,7 @@ tcid: TC15.1-3-fail-1 descr: | Detect the existence of lang attribute on the <html> tag. Determine if the value of the lang attribute is correct for the language for the page. The value must also be identified in the Internet Assigned Numbers Authority's IANA Language subtag registry. - The code sample provides a page in English with the language incorrectly identified as French. A successful test should identify a FAIL for Baseline 15.1-LanguagePage. + The code sample provides a page in English with the language for the page incorrectly identified as French. A successful test should identify a FAIL for Baseline 15.1-LanguagePage. # Reference and link to the applicable ICT Baseline test app-baseline: | diff --git a/testcases/TC15.1-all-pass-1.md b/testcases/TC15.1-all-pass-1.md index bbf6295b..6ab3b0a6 100644 --- a/testcases/TC15.1-all-pass-1.md +++ b/testcases/TC15.1-all-pass-1.md @@ -3,7 +3,7 @@ layout: testcase # Brief, descriptive title for the test case -title: Language of Page - English +title: Language of Page - Pass # The Test Case ID should follow the pattern: diff --git a/testcases/TC15.2-3-fail-2.md b/testcases/TC15.2-3-fail-2.md index 7171f3ac..41012db5 100644 --- a/testcases/TC15.2-3-fail-2.md +++ b/testcases/TC15.2-3-fail-2.md @@ -3,7 +3,7 @@ layout: testcase # Brief, descriptive title for the test case -title: Language of Parts - not Spanish +title: Language of Parts - Incorrect language identified # The Test Case ID should follow the pattern: @@ -17,7 +17,7 @@ tcid: TC15.2-3-fail-2 descr: | Detect the existence of lang attribute for text (part) that differs from the default human language of the page. Determine if the value of the lang attribute is correct for the language of the part. The value must also be identified in the Internet Assigned Numbers Authority's IANA Language subtag registry. - The code sample provides a page in English with a part in French, with the language incorrectly identified as Spanish. A successful test should identify a FAIL for Baseline 15.2-LanguagePart. + The code sample provides a page in English with a part in French, with the language pf the part incorrectly identified as Spanish. A successful test should identify a FAIL for Baseline 15.2-LanguagePart. # Reference and link to the applicable ICT Baseline test app-baseline: | @@ -49,7 +49,7 @@ sample: /testfiles/TF15/15.2-3-fail-2.html --- | Test Instruction | Instruction Detail | Expected Test Case Result | |------------------|--------------------|---------------------------| -| **IC-1** | Text content that differs from the default human language of the page including alternative text for non-text content.| Applicable; page has French text on an English page. | +| **IC-1** | Text content that differs from the default human language of the page including alternative text for non-text content.| Applicable: the English page has a part in French | | **15.2-1** | Identify the human language of the text content that differs from the default human language of the page. | French | | **15.1-2** | Check that the `lang` attribute is specified for any HTML element that contains a content segment that differs from the default human language of the page. [SC 3.1.2] | Pass: `
` | | **15.1-3** | Check that the value of the `lang` attribute is correctly defined for the content segment. [SC 3.1.2] | Fail: "es" is not the correct language subtag for French | diff --git a/testcases/TC15.2-ic-dna-1.md b/testcases/TC15.2-ic-dna-1.md index 1219ec9b..04ad261e 100644 --- a/testcases/TC15.2-ic-dna-1.md +++ b/testcases/TC15.2-ic-dna-1.md @@ -3,7 +3,7 @@ layout: testcase # Brief, descriptive title for the test case -title: Language of Parts - Not Applicable +title: Language of Parts - Does Not Apply # The Test Case ID should follow the pattern: @@ -17,7 +17,7 @@ tcid: TC15.2-ic-dna-1 descr: | Detect the existence of lang attribute for text (part) that differs from the default human language of the page. - The code sample provides a page that is only in English. A successful test should identify a DOES NOT APPLY for Baseline 15.2-LanguagePart. + The code sample provides a page that is only in English. A successful test should identify DOES NOT APPLY for Baseline 15.2-LanguagePart. # Reference and link to the applicable ICT Baseline test app-baseline: | From 1d9d5e0934c550e30b48a9b5952c2dd9ae9bfd05 Mon Sep 17 00:00:00 2001 From: Kathy Eng Date: Tue, 8 Jun 2021 12:46:29 -0400 Subject: [PATCH 4/8] workaround fetch limitation --- testfiles/TF15/15.1-2-fail-1.html | 5 +++++ testfiles/TF15/15.1-2-fail-2.html | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/testfiles/TF15/15.1-2-fail-1.html b/testfiles/TF15/15.1-2-fail-1.html index 670aa10c..7aa6d22e 100644 --- a/testfiles/TF15/15.1-2-fail-1.html +++ b/testfiles/TF15/15.1-2-fail-1.html @@ -5,6 +5,11 @@ 15.1-2-fail-1 +
+ +
This page is in English. \ No newline at end of file diff --git a/testfiles/TF15/15.1-2-fail-2.html b/testfiles/TF15/15.1-2-fail-2.html index 54335bc3..0c1e6d35 100644 --- a/testfiles/TF15/15.1-2-fail-2.html +++ b/testfiles/TF15/15.1-2-fail-2.html @@ -5,6 +5,12 @@ 15.1-2-fail-2 +
+ +
This page is in English. \ No newline at end of file From b75428dcdf0acf393f4308ba2dd83c2322ff62e4 Mon Sep 17 00:00:00 2001 From: Kathy Eng Date: Tue, 8 Jun 2021 12:59:48 -0400 Subject: [PATCH 5/8] comment update --- testcases/TC15.2-all-pass-1.md | 2 +- testfiles/TF15/15.1-2-fail-1.html | 2 +- testfiles/TF15/15.1-2-fail-2.html | 2 +- testfiles/TF15/15.1-3-fail-1.html | 5 +++++ testfiles/TF15/15.1-all-pass-1.html | 5 +++++ 5 files changed, 13 insertions(+), 3 deletions(-) diff --git a/testcases/TC15.2-all-pass-1.md b/testcases/TC15.2-all-pass-1.md index aed2fb0b..4d10aaf3 100644 --- a/testcases/TC15.2-all-pass-1.md +++ b/testcases/TC15.2-all-pass-1.md @@ -3,7 +3,7 @@ layout: testcase # Brief, descriptive title for the test case -title: Language of Parts - French +title: Language of Parts - Pass # The Test Case ID should follow the pattern: diff --git a/testfiles/TF15/15.1-2-fail-1.html b/testfiles/TF15/15.1-2-fail-1.html index 7aa6d22e..e197df8f 100644 --- a/testfiles/TF15/15.1-2-fail-1.html +++ b/testfiles/TF15/15.1-2-fail-1.html @@ -6,7 +6,7 @@
-
diff --git a/testfiles/TF15/15.1-2-fail-2.html b/testfiles/TF15/15.1-2-fail-2.html index 0c1e6d35..c0a625c1 100644 --- a/testfiles/TF15/15.1-2-fail-2.html +++ b/testfiles/TF15/15.1-2-fail-2.html @@ -6,7 +6,7 @@
- diff --git a/testfiles/TF15/15.1-3-fail-1.html b/testfiles/TF15/15.1-3-fail-1.html index 7759ff06..8b929e78 100644 --- a/testfiles/TF15/15.1-3-fail-1.html +++ b/testfiles/TF15/15.1-3-fail-1.html @@ -5,6 +5,11 @@ 15.1-3-fail-1 +
+ +
This page is in English. \ No newline at end of file diff --git a/testfiles/TF15/15.1-all-pass-1.html b/testfiles/TF15/15.1-all-pass-1.html index a9623797..9dbe5df2 100644 --- a/testfiles/TF15/15.1-all-pass-1.html +++ b/testfiles/TF15/15.1-all-pass-1.html @@ -5,6 +5,11 @@ 15.1-all-pass-1 +
+ +
This page is in English. \ No newline at end of file From 976821558034e2c9269f704acc5992cb8992f751 Mon Sep 17 00:00:00 2001 From: Kathy Eng Date: Tue, 8 Jun 2021 14:11:20 -0400 Subject: [PATCH 6/8] remove code from TC title --- testcases.md | 2 +- testcases/TC15.1-2-fail-2.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testcases.md b/testcases.md index 0ce0c2f5..0b9795b4 100644 --- a/testcases.md +++ b/testcases.md @@ -31,7 +31,7 @@ Test Case documents are organized by Baseline Test (each serving as a Test Scena * `15.` Language * [Language of Page: Pass (TC15.1-all-pass-1)](testcases/TC15.1-all-pass-1.html) * [Language of Page: not identified (TC15.1-2-fail-1)](testcases/TC15.1-2-fail-1.html) - * [Language of Page: lang attribute on wrong tag (TC15.1-2-fail-2)](testcases/TC15.1-2-fail-2.html) + * [Language of Page: lang attribute on wrong tag (TC15.1-2-fail-2)](testcases/TC15.1-2-fail-2.html) * [Language of Page: wrong language identified (TC15.1-3-fail-1)](testcases/TC15.1-3-fail-1.html) * [Language of Parts: Pass (TC15.2-all-pass-1)](testcases/TC15.2-all-pass-1.html) * [Language of Parts: not identified (TC15.2-2-fail-1)](testcases/TC15.2-2-fail-1.html) diff --git a/testcases/TC15.1-2-fail-2.md b/testcases/TC15.1-2-fail-2.md index 0e7eb5a7..00fe4bb1 100644 --- a/testcases/TC15.1-2-fail-2.md +++ b/testcases/TC15.1-2-fail-2.md @@ -3,7 +3,7 @@ layout: testcase # Brief, descriptive title for the test case -title: Language of Page - lang attribute on wrong tag +title: Language of Page - lang attribute on wrong tag # The Test Case ID should follow the pattern: From ef7a236166622ce916f441c4b377c081ff9cf223 Mon Sep 17 00:00:00 2001 From: Kathy Eng Date: Tue, 8 Jun 2021 14:27:26 -0400 Subject: [PATCH 7/8] Update testcases.md --- testcases.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcases.md b/testcases.md index 0b9795b4..568391ae 100644 --- a/testcases.md +++ b/testcases.md @@ -36,5 +36,5 @@ Test Case documents are organized by Baseline Test (each serving as a Test Scena * [Language of Parts: Pass (TC15.2-all-pass-1)](testcases/TC15.2-all-pass-1.html) * [Language of Parts: not identified (TC15.2-2-fail-1)](testcases/TC15.2-2-fail-1.html) * [Language of Parts: Incorrect language identified (TC15.2-3-fail-2)](testcases/TC15.2-3-fail-2.html) - * [Language of Parts: Not Applicable (TC15.2-ic-dna-1)](testcases/TC15.2-ic-dna-1.html) + * [Language of Parts: Does Not Apply (TC15.2-ic-dna-1)](testcases/TC15.2-ic-dna-1.html) \ No newline at end of file From b4a329e7a3378c1bbc52faa9eabb0ef1447b6cfc Mon Sep 17 00:00:00 2001 From: Kathy Eng Date: Tue, 8 Jun 2021 15:50:00 -0400 Subject: [PATCH 8/8] invalid lang subtag test cases --- testcases.md | 6 ++-- testcases/TC15.1-2-fail-1.md | 2 +- testcases/TC15.1-3-fail-1.md | 9 +++-- testcases/TC15.1-3-fail-2.md | 56 +++++++++++++++++++++++++++++++ testcases/TC15.2-3-fail-1.md | 56 +++++++++++++++++++++++++++++++ testfiles/TF15/15.1-3-fail-1.html | 4 +-- testfiles/TF15/15.1-3-fail-2.html | 15 +++++++++ testfiles/TF15/15.2-3-fail-1.html | 15 +++++++++ 8 files changed, 153 insertions(+), 10 deletions(-) create mode 100644 testcases/TC15.1-3-fail-2.md create mode 100644 testcases/TC15.2-3-fail-1.md create mode 100644 testfiles/TF15/15.1-3-fail-2.html create mode 100644 testfiles/TF15/15.2-3-fail-1.html diff --git a/testcases.md b/testcases.md index 568391ae..67348015 100644 --- a/testcases.md +++ b/testcases.md @@ -32,9 +32,11 @@ Test Case documents are organized by Baseline Test (each serving as a Test Scena * [Language of Page: Pass (TC15.1-all-pass-1)](testcases/TC15.1-all-pass-1.html) * [Language of Page: not identified (TC15.1-2-fail-1)](testcases/TC15.1-2-fail-1.html) * [Language of Page: lang attribute on wrong tag (TC15.1-2-fail-2)](testcases/TC15.1-2-fail-2.html) - * [Language of Page: wrong language identified (TC15.1-3-fail-1)](testcases/TC15.1-3-fail-1.html) + * [Language of Page: invalid language subtag (TC15.1-3-fail-1)](testcases/TC15.1-3-fail-1.html) + * [Language of Page: wrong language identified (TC15.1-3-fail-2)](testcases/TC15.1-3-fail-2.html) * [Language of Parts: Pass (TC15.2-all-pass-1)](testcases/TC15.2-all-pass-1.html) * [Language of Parts: not identified (TC15.2-2-fail-1)](testcases/TC15.2-2-fail-1.html) - * [Language of Parts: Incorrect language identified (TC15.2-3-fail-2)](testcases/TC15.2-3-fail-2.html) + * [Language of Parts: invalid language subtag (TC15.2-3-fail-1)](testcases/TC15.2-3-fail-1.html) + * [Language of Parts: incorrect language identified (TC15.2-3-fail-2)](testcases/TC15.2-3-fail-2.html) * [Language of Parts: Does Not Apply (TC15.2-ic-dna-1)](testcases/TC15.2-ic-dna-1.html) \ No newline at end of file diff --git a/testcases/TC15.1-2-fail-1.md b/testcases/TC15.1-2-fail-1.md index 3c3feb45..f71509ca 100644 --- a/testcases/TC15.1-2-fail-1.md +++ b/testcases/TC15.1-2-fail-1.md @@ -25,7 +25,7 @@ app-baseline: | **Baseline Test ID:** 15.1-LanguagePage - **Test Instruction:** 2 + **Test Instruction:** # Expected result that the ICT Baseline would predict # [Pass | Fail | DNA] diff --git a/testcases/TC15.1-3-fail-1.md b/testcases/TC15.1-3-fail-1.md index 434fedc7..8f84d1d0 100644 --- a/testcases/TC15.1-3-fail-1.md +++ b/testcases/TC15.1-3-fail-1.md @@ -3,8 +3,7 @@ layout: testcase # Brief, descriptive title for the test case -title: Language of Page - wrong language identified - +title: Language of Page - invalid language subtag # The Test Case ID should follow the pattern: # TC[Baseline Test Procedure #]-[Test Instruction #]- @@ -17,7 +16,7 @@ tcid: TC15.1-3-fail-1 descr: | Detect the existence of lang attribute on the <html> tag. Determine if the value of the lang attribute is correct for the language for the page. The value must also be identified in the Internet Assigned Numbers Authority's IANA Language subtag registry. - The code sample provides a page in English with the language for the page incorrectly identified as French. A successful test should identify a FAIL for Baseline 15.1-LanguagePage. + The code sample provides a page in English with the language for the page incorrectly identified as "eng". It should be "en". A successful test should identify a FAIL for Baseline 15.1-LanguagePage. # Reference and link to the applicable ICT Baseline test app-baseline: | @@ -32,7 +31,7 @@ app-baseline: | result: FAIL # Brief description of the rationale for the expected result -result-descr: The English page's html tag has lang="fr" which is not the correct value. +result-descr: The English page's html tag has lang="eng" which is an invalid language subtag. # URL for the code sample # In the sample code file, add id="tc_code" to the @@ -51,6 +50,6 @@ sample: /testfiles/TF15/15.1-3-fail-1.html |------------------|--------------------|---------------------------| | **IC-1** | Pages with text (including text alternatives).| Applicable; page has text. | | **15.1-1** | Identify the default human language of the page by reviewing the page content. The default human language of the page is the language in which most of the content is presented. | Page language is English. | -| **15.1-2** | Check that the lang attribute is defined on the `` tag for the page. [SC 3.1.1] | Pass: `` | +| **15.1-2** | Check that the lang attribute is defined on the `` tag for the page. [SC 3.1.1] | Pass: `` | | **15.1-3** | Check that the value of the `lang` attribute matches the determined default human language for the page. [SC 3.1.1] | Fail: "en" is the correct language subtag for this English page | | **Result** | If any of the above checks fail, then Baseline Test 15.1-LanguagePage fails. | Fail: 15.1-3 fails | \ No newline at end of file diff --git a/testcases/TC15.1-3-fail-2.md b/testcases/TC15.1-3-fail-2.md new file mode 100644 index 00000000..2c891a37 --- /dev/null +++ b/testcases/TC15.1-3-fail-2.md @@ -0,0 +1,56 @@ +--- +# The layout must be 'testcase'; DO NOT Change +layout: testcase + +# Brief, descriptive title for the test case +title: Language of Page - wrong language identified + + +# The Test Case ID should follow the pattern: +# TC[Baseline Test Procedure #]-[Test Instruction #]- +# [Expected Result (pass/fail/dna)]-[example #], e.g., TC05.1-1-fail-1 +tcid: TC15.1-3-fail-2 + +# Description of the Test Case, the included code sample, test considerations, +# and rationale for the expected result according to the applicable ICT +# Baseline test +descr: | + Detect the existence of lang attribute on the <html> tag. Determine if the value of the lang attribute is correct for the language for the page. The value must also be identified in the Internet Assigned Numbers Authority's IANA Language subtag registry. + + The code sample provides a page in English with the language for the page incorrectly identified as French. A successful test should identify a FAIL for Baseline 15.1-LanguagePage. + +# Reference and link to the applicable ICT Baseline test +app-baseline: | + [15.1 Test Procedure for Language of Page](https://section508coordinators.github.io/ICTTestingBaseline/15Language.html#151-test-procedure-for-language-of-page) + + **Baseline Test ID:** 15.1-LanguagePage + + **Test Instruction:** 3 + +# Expected result that the ICT Baseline would predict +# [Pass | Fail | DNA] +result: FAIL + +# Brief description of the rationale for the expected result +result-descr: The English page's html tag has lang="fr" which is not the correct value. + +# URL for the code sample +# In the sample code file, add id="tc_code" to the +# element that contains the relevant code snippet. +# +# Then upload the code sample to the 'testfiles' folder +# and provide the link (and only the url) below. +sample: /testfiles/TF15/15.1-3-fail-2.html + +# Table of test instructions, including the following table headers: +# Test Instruction #; Instruction Detail; Expected Test Case Result +# +# Include the table in the content section below +--- +| Test Instruction | Instruction Detail | Expected Test Case Result | +|------------------|--------------------|---------------------------| +| **IC-1** | Pages with text (including text alternatives).| Applicable; page has text. | +| **15.1-1** | Identify the default human language of the page by reviewing the page content. The default human language of the page is the language in which most of the content is presented. | Page language is English. | +| **15.1-2** | Check that the lang attribute is defined on the `` tag for the page. [SC 3.1.1] | Pass: `` | +| **15.1-3** | Check that the value of the `lang` attribute matches the determined default human language for the page. [SC 3.1.1] | Fail: "en" is the correct language subtag for this English page | +| **Result** | If any of the above checks fail, then Baseline Test 15.1-LanguagePage fails. | Fail: 15.1-3 fails | \ No newline at end of file diff --git a/testcases/TC15.2-3-fail-1.md b/testcases/TC15.2-3-fail-1.md new file mode 100644 index 00000000..0236b74b --- /dev/null +++ b/testcases/TC15.2-3-fail-1.md @@ -0,0 +1,56 @@ +--- +# The layout must be 'testcase'; DO NOT Change +layout: testcase + +# Brief, descriptive title for the test case +title: Language of Parts - Invalid language subtag + + +# The Test Case ID should follow the pattern: +# TC[Baseline Test Procedure #]-[Test Instruction #]- +# [Expected Result (pass/fail/dna)]-[example #], e.g., TC05.1-1-fail-1 +tcid: TC15.2-3-fail-1 + +# Description of the Test Case, the included code sample, test considerations, +# and rationale for the expected result according to the applicable ICT +# Baseline test +descr: | + Detect the existence of lang attribute for text (part) that differs from the default human language of the page. Determine if the value of the lang attribute is correct for the language of the part. The value must also be identified in the Internet Assigned Numbers Authority's IANA Language subtag registry. + + The code sample provides a page in English with a part in French, with the language of the French part identified with invalid language subtag of "fre" . A successful test should identify a FAIL for Baseline 15.2-LanguagePart. + +# Reference and link to the applicable ICT Baseline test +app-baseline: | + [15.2 Test Procedure for Language of Parts](https://section508coordinators.github.io/ICTTestingBaseline/15Language.html#152-test-procedure-for-language-of-parts) + + **Baseline Test ID:** 15.2-LanguagePart + + **Test Instruction:** 3 + +# Expected result that the ICT Baseline would predict +# [Pass | Fail | DNA] +result: FAIL + +# Brief description of the rationale for the expected result +result-descr: The French part has lang="fre", which is not a valid language subtag. The correct language subtag for French is "fr". + +# URL for the code sample +# In the sample code file, add id="tc_code" to the +# element that contains the relevant code snippet. +# +# Then upload the code sample to the 'testfiles' folder +# and provide the link (and only the url) below. +sample: /testfiles/TF15/15.2-3-fail-1.html + +# Table of test instructions, including the following table headers: +# Test Instruction #; Instruction Detail; Expected Test Case Result +# +# Include the table in the content section below +--- +| Test Instruction | Instruction Detail | Expected Test Case Result | +|------------------|--------------------|---------------------------| +| **IC-1** | Text content that differs from the default human language of the page including alternative text for non-text content.| Applicable: the English page has a part in French | +| **15.2-1** | Identify the human language of the text content that differs from the default human language of the page. | French | +| **15.1-2** | Check that the `lang` attribute is specified for any HTML element that contains a content segment that differs from the default human language of the page. [SC 3.1.2] | Pass: `
` | +| **15.1-3** | Check that the value of the `lang` attribute is correctly defined for the content segment. [SC 3.1.2] | Fail: "fr" is the correct language subtag for French, not "fre". | +| **Result** | If any of the above checks fail, then Baseline Test 15.1-LanguagePage fails. | Fail: 15.1-3 fails. | \ No newline at end of file diff --git a/testfiles/TF15/15.1-3-fail-1.html b/testfiles/TF15/15.1-3-fail-1.html index 8b929e78..ddab8ee3 100644 --- a/testfiles/TF15/15.1-3-fail-1.html +++ b/testfiles/TF15/15.1-3-fail-1.html @@ -1,5 +1,5 @@ - + 15.1-3-fail-1 @@ -7,7 +7,7 @@
This page is in English. diff --git a/testfiles/TF15/15.1-3-fail-2.html b/testfiles/TF15/15.1-3-fail-2.html new file mode 100644 index 00000000..8b929e78 --- /dev/null +++ b/testfiles/TF15/15.1-3-fail-2.html @@ -0,0 +1,15 @@ + + + + + 15.1-3-fail-1 + + +
+ +
+ This page is in English. + + \ No newline at end of file diff --git a/testfiles/TF15/15.2-3-fail-1.html b/testfiles/TF15/15.2-3-fail-1.html new file mode 100644 index 00000000..38b3fe3f --- /dev/null +++ b/testfiles/TF15/15.2-3-fail-1.html @@ -0,0 +1,15 @@ + + + + + 15.2-3-pfail-2 + + +

If you were in France, how would you say "they wandered into a strange Tiki bar on the edge of the small beach town"?

+
+
+ Ils ont trouvé un étrange bar Tiki aux abords de la petite ville balnéaire. +
+
+ + \ No newline at end of file