diff --git a/testcases.md b/testcases.md index 979e1efb..67348015 100644 --- a/testcases.md +++ b/testcases.md @@ -28,3 +28,15 @@ 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: 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: 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: 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 new file mode 100644 index 00000000..f71509ca --- /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:** + +# 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-2-fail-2.md b/testcases/TC15.1-2-fail-2.md new file mode 100644 index 00000000..00fe4bb1 --- /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 - lang attribute on wrong 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, 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: | + [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.1-3-fail-1.md b/testcases/TC15.1-3-fail-1.md new file mode 100644 index 00000000..8f84d1d0 --- /dev/null +++ b/testcases/TC15.1-3-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 - 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.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 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: | + [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="eng" which is an invalid language subtag. + +# 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-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.1-all-pass-1.md b/testcases/TC15.1-all-pass-1.md new file mode 100644 index 00000000..6ab3b0a6 --- /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 - Pass + + +# 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..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/testcases/TC15.2-3-fail-2.md b/testcases/TC15.2-3-fail-2.md new file mode 100644 index 00000000..41012db5 --- /dev/null +++ b/testcases/TC15.2-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 Parts - Incorrect 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.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 +# 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 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: | + [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-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** | 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 | +| **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..4d10aaf3 --- /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 - Pass + + +# 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/testcases/TC15.2-ic-dna-1.md b/testcases/TC15.2-ic-dna-1.md new file mode 100644 index 00000000..04ad261e --- /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 - Does Not Apply + + +# 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 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/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..e197df8f --- /dev/null +++ b/testfiles/TF15/15.1-2-fail-1.html @@ -0,0 +1,15 @@ + + + + + 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 new file mode 100644 index 00000000..c0a625c1 --- /dev/null +++ b/testfiles/TF15/15.1-2-fail-2.html @@ -0,0 +1,16 @@ + + + + + 15.1-2-fail-2 + + +
+ +
+ 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..ddab8ee3 --- /dev/null +++ b/testfiles/TF15/15.1-3-fail-1.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.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.1-all-pass-1.html b/testfiles/TF15/15.1-all-pass-1.html new file mode 100644 index 00000000..9dbe5df2 --- /dev/null +++ b/testfiles/TF15/15.1-all-pass-1.html @@ -0,0 +1,15 @@ + + + + + 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..3d1edefb --- /dev/null +++ b/testfiles/TF15/15.2-2-fail-1.html @@ -0,0 +1,15 @@ + + + + + 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"?

+
+
+ 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..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 diff --git a/testfiles/TF15/15.2-3-fail-2.html b/testfiles/TF15/15.2-3-fail-2.html new file mode 100644 index 00000000..103bb117 --- /dev/null +++ b/testfiles/TF15/15.2-3-fail-2.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 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 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