You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// These tests require autodetect plugin to be absent
496
+
497
+
codeInputElement.setAttribute("language","css");
498
+
awaitwaitAsync(50);// Wait for language to propogate to class
499
+
testAssertion("Core","Language Class Propogates",codeInputElement.querySelector("pre").classList.contains("language-css"),`Class name of pre element was "${codeInputElement.querySelector("pre").className}" but code-input element had language="css"`);
500
+
501
+
window.requestAnimationFrame(function(){
502
+
codeInputElement.setAttribute("placeholder","Gimme some HTML!");
503
+
codeInputElement.setAttribute("language","html");
504
+
});
505
+
awaitwaitAsync(500);// Wait for animation frame; language to propogate to class
506
+
testAssertion("Core","Language Class Propogates When Set Immediately After Placeholder Set",codeInputElement.querySelector("pre").classList.contains("language-html"),`Class name of pre element was "${codeInputElement.querySelector("pre").className}" but code-input element had language="css"`);
0 commit comments