@@ -108,7 +108,7 @@ function waitAsync(milliseconds) {
108108function beginTest ( isHLJS ) {
109109 let codeInputElem = document . querySelector ( "code-input" ) ;
110110 if ( isHLJS ) {
111- codeInput . registerTemplate ( "code-editor" , codeInput . templates . hljs ( hljs , [
111+ codeInput . registerTemplate ( "code-editor" , new codeInput . templates . Hljs ( hljs , [
112112 new codeInput . plugins . AutoCloseBrackets ( ) ,
113113 new codeInput . plugins . Autocomplete ( function ( popupElem , textarea , selectionEnd ) {
114114 if ( textarea . value . substring ( selectionEnd - 5 , selectionEnd ) == "popup" ) {
@@ -127,7 +127,7 @@ function beginTest(isHLJS) {
127127 new codeInput . plugins . SpecialChars ( true ) ,
128128 ] ) ) ;
129129 } else {
130- codeInput . registerTemplate ( "code-editor" , codeInput . templates . prism ( Prism , [
130+ codeInput . registerTemplate ( "code-editor" , new codeInput . templates . Prism ( Prism , [
131131 new codeInput . plugins . AutoCloseBrackets ( ) ,
132132 new codeInput . plugins . Autocomplete ( function ( popupElem , textarea , selectionEnd ) {
133133 if ( textarea . value . substring ( selectionEnd - 5 , selectionEnd ) == "popup" ) {
@@ -590,4 +590,4 @@ console.log("I've got another line!", 2 < 3, "should be true.");
590590 document . querySelector ( "h2" ) . style . backgroundColor = "lightgreen" ;
591591 document . querySelector ( "h2" ) . textContent = "All Tests have Passed." ;
592592 }
593- }
593+ }
0 commit comments