TEST
TEST 2
{"ScriptPreparationCode":null,"TestCases":[{"Name":"all","Code":"if (!!node.closest) {\r\n let hasNoTranslate, closestNoTranslate;\r\n switch (true) {\r\n case node.closest(\u0027[translate=\u0022no\u0022]\u0027) !== null:\r\n hasNoTranslate = true;\r\n \tclosestNoTranslate = node.closest(\u0027[translate=\u0022no\u0022]\u0027);\r\n break\r\n case node.closest(\u0027.notranslate\u0027) !== null:\r\n hasNoTranslate = true;\r\n \tclosestNoTranslate = node.closest(\u0027.notranslate\u0027);\r\n break\r\n case node.closest(\u0027.skiptranslate\u0027) !== null:\r\n hasNoTranslate = true;\r\n \tclosestNoTranslate = node.closest(\u0027.skiptranslate\u0027);\r\n break\r\n case node.closest(\u0027#wpadminbar\u0027) !== null:\r\n hasNoTranslate = true;\r\n \tclosestNoTranslate = node.closest(\u0027#wpadminbar\u0027);\r\n break\r\n default:\r\n hasNoTranslate = false;\r\n }\r\n\r\n if (!hasNoTranslate) {\r\n return false;\r\n }\r\n\r\n const closestYesTranslate = node.closest(\u0027[translate=\u0022yes\u0022]\u0027);\r\n if (closestYesTranslate) {\r\n return closestYesTranslate.contains(closestNoTranslate);\r\n }\r\n }","IsDeferred":false},{"Name":"no-translate","Code":"if (!!node.closest) {\r\n const closestNoTranslate = node.closest(\u0027[translate=\u0022no\u0022]\u0027);\r\n if (!closestNoTranslate) {\r\n return false;\r\n }\r\n const closestYesTranslate = node.closest(\u0027[translate=\u0022yes\u0022]\u0027);\r\n if (closestYesTranslate) {\r\n return closestYesTranslate.contains(closestNoTranslate);\r\n }\r\n }","IsDeferred":false}]}