@@ -7,10 +7,10 @@ import { jest } from "@jest/globals";
77
88const mockFetch =
99 ( text = "" ) =>
10- ( ) =>
11- Promise . resolve ( {
12- text : ( ) => Promise . resolve ( text ) ,
13- } ) ;
10+ ( ) =>
11+ Promise . resolve ( {
12+ text : ( ) => Promise . resolve ( text ) ,
13+ } ) ;
1414
1515describe ( "pat-inject" , function ( ) {
1616 var deferred ;
@@ -498,15 +498,15 @@ describe("pat-inject", function () {
498498 describe ( "6 - parseRawHtml" , function ( ) {
499499 it ( "6.1 - Roundtrip attributes with double quotes" , function ( ) {
500500 var value =
501- '{"plugins": "paste", "content_css": "/_themes/Style/tiny-body.css"}' ,
501+ '{"plugins": "paste", "content_css": "/_themes/Style/tiny-body.css"}' ,
502502 input = "<a data-tinymce-json='" + value + "'>Test</a>" ,
503503 $output = pattern . _parseRawHtml ( input , null ) ;
504504 expect ( $output . find ( "a" ) . attr ( "data-tinymce-json" ) ) . toBe ( value ) ;
505505 } ) ;
506506
507507 it ( "6.2 - Roundtrip attributes with single quotes" , function ( ) {
508508 var value =
509- "{'plugins': 'paste', 'content_css': '/_themes/Style/tiny-body.css'}" ,
509+ "{'plugins': 'paste', 'content_css': '/_themes/Style/tiny-body.css'}" ,
510510 input = '<a data-tinymce-json="' + value + '">Test</a>' ,
511511 $output = pattern . _parseRawHtml ( input , null ) ;
512512 expect ( $output . find ( "a" ) . attr ( "data-tinymce-json" ) ) . toBe ( value ) ;
@@ -740,7 +740,7 @@ describe("pat-inject", function () {
740740 } ) ;
741741
742742 describe ( "9 - DOM tests" , function ( ) {
743- beforeEach ( function ( ) { } ) ;
743+ beforeEach ( function ( ) { } ) ;
744744
745745 describe ( "9.1 - Injection on an anchor element" , function ( ) {
746746 var $a , $div ;
@@ -844,9 +844,9 @@ describe("pat-inject", function () {
844844 $a . trigger ( "click" ) ;
845845 answer (
846846 "<html><body>" +
847- '<div id="someid1">repl1</div>' +
848- '<div id="someid2">repl2</div>' +
849- "</body></html>"
847+ '<div id="someid1">repl1</div>' +
848+ '<div id="someid2">repl2</div>' +
849+ "</body></html>"
850850 ) ;
851851 await utils . timeout ( 1 ) ; // wait a tick for async to settle.
852852
@@ -882,8 +882,8 @@ describe("pat-inject", function () {
882882 $a . trigger ( "click" ) ;
883883 answer (
884884 "<html><body>" +
885- '<div id="otherid" class="someclass">repl</div>' +
886- "</body></html>"
885+ '<div id="otherid" class="someclass">repl</div>' +
886+ "</body></html>"
887887 ) ;
888888 await utils . timeout ( 1 ) ; // wait a tick for async to settle.
889889
@@ -901,8 +901,8 @@ describe("pat-inject", function () {
901901 $a . trigger ( "click" ) ;
902902 answer (
903903 "<html><body>" +
904- '<div id="someid" class="someclass">repl</div>' +
905- "</body></html>"
904+ '<div id="someid" class="someclass">repl</div>' +
905+ "</body></html>"
906906 ) ;
907907 await utils . timeout ( 1 ) ; // wait a tick for async to settle.
908908
@@ -1073,8 +1073,8 @@ describe("pat-inject", function () {
10731073 describe ( "9.2.4.4 - formaction attribute on submit buttons" , function ( ) {
10741074 it ( "9.2.4.4.1 - use submit button formaction value as action URL" , async function ( ) {
10751075 var $submit1 = $ (
1076- '<input type="submit" name="submit" value="default" />'
1077- ) ,
1076+ '<input type="submit" name="submit" value="default" />'
1077+ ) ,
10781078 $submit2 = $ (
10791079 '<input type="submit" name="submit" value="special" formaction="other.html" />'
10801080 ) ;
@@ -1127,8 +1127,8 @@ describe("pat-inject", function () {
11271127
11281128 it ( "9.2.4.4.3 - use fragment in formaction value as source + target selector" , async function ( ) {
11291129 var $submit1 = $ (
1130- '<input type="submit" name="submit" value="default" />'
1131- ) ,
1130+ '<input type="submit" name="submit" value="default" />'
1131+ ) ,
11321132 $submit2 = $ (
11331133 '<input type="submit" name="submit" value="special" formaction="other.html#otherid" />'
11341134 ) ,
@@ -1144,8 +1144,8 @@ describe("pat-inject", function () {
11441144
11451145 answer (
11461146 "<html><body>" +
1147- '<div id="otherid">other</div>' +
1148- "</body></html>"
1147+ '<div id="otherid">other</div>' +
1148+ "</body></html>"
11491149 ) ;
11501150 await utils . timeout ( 1 ) ; // wait a tick for async to settle.
11511151
@@ -1159,8 +1159,8 @@ describe("pat-inject", function () {
11591159
11601160 it ( "9.2.4.4.4 - use fragment in formaction value as source selector, respect target" , async function ( ) {
11611161 var $submit1 = $ (
1162- '<input type="submit" name="submit" value="default" />'
1163- ) ,
1162+ '<input type="submit" name="submit" value="default" />'
1163+ ) ,
11641164 $submit2 = $ (
11651165 '<input type="submit" name="submit" value="special" formaction="other.html#otherid" />'
11661166 ) ,
@@ -1177,8 +1177,8 @@ describe("pat-inject", function () {
11771177
11781178 answer (
11791179 "<html><body>" +
1180- '<div id="otherid">other</div>' +
1181- "</body></html>"
1180+ '<div id="otherid">other</div>' +
1181+ "</body></html>"
11821182 ) ;
11831183 await utils . timeout ( 1 ) ; // wait a tick for async to settle.
11841184
@@ -1192,8 +1192,8 @@ describe("pat-inject", function () {
11921192
11931193 it ( "9.2.4.4.5 - formaction works with multiple targets" , async function ( ) {
11941194 var $submit1 = $ (
1195- '<input type="submit" name="submit" value="default" />'
1196- ) ,
1195+ '<input type="submit" name="submit" value="default" />'
1196+ ) ,
11971197 $submit2 = $ (
11981198 '<input type="submit" name="submit" value="special" formaction="other.html#otherid" />'
11991199 ) ,
@@ -1214,8 +1214,8 @@ describe("pat-inject", function () {
12141214
12151215 answer (
12161216 "<html><body>" +
1217- '<div id="otherid">other</div>' +
1218- "</body></html>"
1217+ '<div id="otherid">other</div>' +
1218+ "</body></html>"
12191219 ) ;
12201220 await utils . timeout ( 1 ) ; // wait a tick for async to settle.
12211221
@@ -1230,8 +1230,8 @@ describe("pat-inject", function () {
12301230
12311231 it ( "9.2.4.4.6 - formaction works with multiple sources" , async function ( ) {
12321232 var $submit1 = $ (
1233- '<input type="submit" name="submit" value="default" />'
1234- ) ,
1233+ '<input type="submit" name="submit" value="default" />'
1234+ ) ,
12351235 $submit2 = $ (
12361236 '<input type="submit" name="submit" value="special" formaction="other.html#otherid" />'
12371237 ) ,
@@ -1252,9 +1252,9 @@ describe("pat-inject", function () {
12521252
12531253 answer (
12541254 "<html><body>" +
1255- '<div id="someid">some</div>' +
1256- '<div id="otherid">other</div>' +
1257- "</body></html>"
1255+ '<div id="someid">some</div>' +
1256+ '<div id="otherid">other</div>' +
1257+ "</body></html>"
12581258 ) ;
12591259 await utils . timeout ( 1 ) ; // wait a tick for async to settle.
12601260
@@ -1269,8 +1269,8 @@ describe("pat-inject", function () {
12691269
12701270 it ( "9.2.4.4.7 - formaction works source and target on the button" , async function ( ) {
12711271 var $submit1 = $ (
1272- '<input type="submit" name="submit" value="default" />'
1273- ) ,
1272+ '<input type="submit" name="submit" value="default" />'
1273+ ) ,
12741274 $submit2 = $ (
12751275 '<input type="submit" name="submit" value="special" formaction="other.html#otherid" />'
12761276 ) ,
@@ -1291,9 +1291,9 @@ describe("pat-inject", function () {
12911291
12921292 answer (
12931293 "<html><body>" +
1294- '<div id="someid">some</div>' +
1295- '<div id="otherid">other</div>' +
1296- "</body></html>"
1294+ '<div id="someid">some</div>' +
1295+ '<div id="otherid">other</div>' +
1296+ "</body></html>"
12971297 ) ;
12981298 await utils . timeout ( 1 ) ; // wait a tick for async to settle.
12991299
0 commit comments