diff --git a/test/data/database-test-cases.json b/test/data/database-test-cases.json index 1595ffc4ae..b683deef81 100644 --- a/test/data/database-test-cases.json +++ b/test/data/database-test-cases.json @@ -28,7 +28,7 @@ "ipa": 1 }, "terms": { - "total": 33 + "total": 34 } } }, @@ -37,7 +37,7 @@ { "kanji": 2, "kanjiMeta": 6, - "terms": 33, + "terms": 34, "termMeta": 39, "tagMeta": 15, "media": 6 @@ -46,7 +46,7 @@ "total": { "kanji": 2, "kanjiMeta": 6, - "terms": 33, + "terms": 34, "termMeta": 39, "tagMeta": 15, "media": 6 diff --git a/test/data/dictionaries/valid-dictionary1/term_bank_1.json b/test/data/dictionaries/valid-dictionary1/term_bank_1.json index 7c3e005a40..e896e11594 100644 --- a/test/data/dictionaries/valid-dictionary1/term_bank_1.json +++ b/test/data/dictionaries/valid-dictionary1/term_bank_1.json @@ -347,5 +347,6 @@ ["USB", "ユーエスビー", "n", "n", 1, ["USB definition"], 21, ""], ["마시다", "", "v", "v", 1, ["masida definition"], 22, ""], ["自重", "じちょう", "n", "n", 1, ["jichou definition"], 23, ""], - ["自重", "じじゅう", "n", "n", 2, ["jijuu definition"], 24, ""] + ["自重", "じじゅう", "n", "n", 2, ["jijuu definition"], 24, ""], + ["ありがとう", "ありがとう", "n", "n", 1, ["arigatou definition"], 25, ""] ] diff --git a/test/data/html/js/popup-tests.js b/test/data/html/js/popup-tests.js index c838cebb66..41efd25d2d 100644 --- a/test/data/html/js/popup-tests.js +++ b/test/data/html/js/popup-tests.js @@ -30,4 +30,16 @@ HtmlTestUtilities.runMain(() => { if (!(iframeWithSrcdoc instanceof HTMLIFrameElement)) { continue; } iframeWithSrcdoc.srcdoc = HtmlTestUtilities.dataUrlToContent(src).content; } + + const testCases = document.querySelectorAll('test-case[data-expected-result="failure"]'); + for (const testCase of testCases) { + const description = testCase.querySelector('test-description'); + if (description) { + const dangerSpan = document.createElement('span'); + dangerSpan.className = 'danger'; + dangerSpan.textContent = 'This element is expected to not work.'; + description.appendChild(document.createElement('br')); + description.appendChild(dangerSpan); + } + } }); diff --git a/test/data/html/popup-tests.html b/test/data/html/popup-tests.html index ef2d36e6ea..a549c380c5 100644 --- a/test/data/html/popup-tests.html +++ b/test/data/html/popup-tests.html @@ -30,6 +30,8 @@ .danger { color: #c83c28; } + +
@@ -53,7 +55,7 @@sandbox="allow-scripts"
.sandbox="allow-scripts"
.