How to use Command method in Nightwatch

Best JavaScript code snippet using nightwatch

Run Nightwatch automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

editing.js

Source: editing.js Github

copy
1//-------------------------------------------------------------------------------------------------------
2// Java script library to run editing layout tests
3
4var commandCount = 1;
5var commandDelay = window.location.search.substring(1);
6if (commandDelay == '')
7    commandDelay = 0;
8var selection = window.getSelection();
9
10//-------------------------------------------------------------------------------------------------------
11
12function execSetSelectionCommand(sn, so, en, eo) {
13    window.getSelection().setBaseAndExtent(sn, so, en, eo);
14}
15
16// Args are startNode, startOffset, endNode, endOffset
17function setSelectionCommand(sn, so, en, eo) {
18    if (commandDelay > 0) {
19        window.setTimeout(execSetSelectionCommand, commandCount * commandDelay, sn, so, en, eo);
20        commandCount++;
21    } else
22        execSetSelectionCommand(sn, so, en, eo);
23}
24
25//-------------------------------------------------------------------------------------------------------
26
27function execTransposeCharactersCommand() {
28    document.execCommand("Transpose");
29}
30function transposeCharactersCommand() {
31    if (commandDelay > 0) {
32        window.setTimeout(execTransposeCharactersCommand, commandCount * commandDelay);
33        commandCount++;
34    }
35    else {
36        execTransposeCharactersCommand();
37    }
38}
39
40//-------------------------------------------------------------------------------------------------------
41
42function execMoveSelectionForwardByCharacterCommand() {
43    selection.modify("move", "forward", "character");
44}
45function moveSelectionForwardByCharacterCommand() {
46    if (commandDelay > 0) {
47        window.setTimeout(execMoveSelectionForwardByCharacterCommand, commandCount * commandDelay);
48        commandCount++;
49    }
50    else {
51        execMoveSelectionForwardByCharacterCommand();
52    }
53}
54
55//-------------------------------------------------------------------------------------------------------
56
57function execExtendSelectionForwardByCharacterCommand() {
58    selection.modify("extend", "forward", "character");
59}
60function extendSelectionForwardByCharacterCommand() {
61    if (commandDelay > 0) {
62        window.setTimeout(execExtendSelectionForwardByCharacterCommand, commandCount * commandDelay);
63        commandCount++;
64    }
65    else {
66        execExtendSelectionForwardByCharacterCommand();
67    }
68}
69
70//-------------------------------------------------------------------------------------------------------
71
72function execMoveSelectionForwardByWordCommand() {
73    selection.modify("move", "forward", "word");
74}
75function moveSelectionForwardByWordCommand() {
76    if (commandDelay > 0) {
77        window.setTimeout(execMoveSelectionForwardByWordCommand, commandCount * commandDelay);
78        commandCount++;
79    }
80    else {
81        execMoveSelectionForwardByWordCommand();
82    }
83}
84
85//-------------------------------------------------------------------------------------------------------
86
87function execExtendSelectionForwardByWordCommand() {
88    selection.modify("extend", "forward", "word");
89}
90function extendSelectionForwardByWordCommand() {
91    if (commandDelay > 0) {
92        window.setTimeout(execExtendSelectionForwardByWordCommand, commandCount * commandDelay);
93        commandCount++;
94    }
95    else {
96        execExtendSelectionForwardByWordCommand();
97    }
98}
99
100//-------------------------------------------------------------------------------------------------------
101
102function execMoveSelectionForwardBySentenceCommand() {
103    selection.modify("move", "forward", "sentence");
104}
105function moveSelectionForwardBySentenceCommand() {
106    if (commandDelay > 0) {
107        window.setTimeout(execMoveSelectionForwardBySentenceCommand, commandCount * commandDelay);
108        commandCount++;
109    }
110    else {
111        execMoveSelectionForwardBySentenceCommand();
112    }
113}
114
115//-------------------------------------------------------------------------------------------------------
116
117function execExtendSelectionForwardBySentenceCommand() {
118    selection.modify("extend", "forward", "sentence");
119}
120function extendSelectionForwardBySentenceCommand() {
121    if (commandDelay > 0) {
122        window.setTimeout(execExtendSelectionForwardBySentenceCommand, commandCount * commandDelay);
123        commandCount++;
124    }
125    else {
126        execExtendSelectionForwardBySentenceCommand();
127    }
128}
129
130//-------------------------------------------------------------------------------------------------------
131
132function execMoveSelectionForwardByLineCommand() {
133    selection.modify("move", "forward", "line");
134}
135function moveSelectionForwardByLineCommand() {
136    if (commandDelay > 0) {
137        window.setTimeout(execMoveSelectionForwardByLineCommand, commandCount * commandDelay);
138        commandCount++;
139    }
140    else {
141        execMoveSelectionForwardByLineCommand();
142    }
143}
144
145//-------------------------------------------------------------------------------------------------------
146
147function execExtendSelectionForwardByLineCommand() {
148    selection.modify("extend", "forward", "line");
149}
150function extendSelectionForwardByLineCommand() {
151    if (commandDelay > 0) {
152        window.setTimeout(execExtendSelectionForwardByLineCommand, commandCount * commandDelay);
153        commandCount++;
154    }
155    else {
156        execExtendSelectionForwardByLineCommand();
157    }
158}
159
160//-------------------------------------------------------------------------------------------------------
161
162function execMoveSelectionForwardByLineBoundaryCommand() {
163    selection.modify("move", "forward", "lineBoundary");
164}
165function moveSelectionForwardByLineBoundaryCommand() {
166    if (commandDelay > 0) {
167        window.setTimeout(execMoveSelectionForwardByLineBoundaryCommand, commandCount * commandDelay);
168        commandCount++;
169    }
170    else {
171        execMoveSelectionForwardByLineBoundaryCommand();
172    }
173}
174
175//-------------------------------------------------------------------------------------------------------
176
177function execExtendSelectionForwardByLineBoundaryCommand() {
178    selection.modify("extend", "forward", "lineBoundary");
179}
180function extendSelectionForwardByLineBoundaryCommand() {
181    if (commandDelay > 0) {
182        window.setTimeout(execExtendSelectionForwardByLineBoundaryCommand, commandCount * commandDelay);
183        commandCount++;
184    }
185    else {
186        execExtendSelectionForwardByLineBoundaryCommand();
187    }
188}
189
190//-------------------------------------------------------------------------------------------------------
191
192function execMoveSelectionBackwardByCharacterCommand() {
193    selection.modify("move", "backward", "character");
194}
195function moveSelectionBackwardByCharacterCommand() {
196    if (commandDelay > 0) {
197        window.setTimeout(execMoveSelectionBackwardByCharacterCommand, commandCount * commandDelay);
198        commandCount++;
199    }
200    else {
201        execMoveSelectionBackwardByCharacterCommand();
202    }
203}
204
205//-------------------------------------------------------------------------------------------------------
206
207function execExtendSelectionBackwardByCharacterCommand() {
208    selection.modify("extend", "backward", "character");
209}
210function extendSelectionBackwardByCharacterCommand() {
211    if (commandDelay > 0) {
212        window.setTimeout(execExtendSelectionBackwardByCharacterCommand, commandCount * commandDelay);
213        commandCount++;
214    }
215    else {
216        execExtendSelectionBackwardByCharacterCommand();
217    }
218}
219
220//-------------------------------------------------------------------------------------------------------
221
222function execMoveSelectionBackwardByWordCommand() {
223    selection.modify("move", "backward", "word");
224}
225function moveSelectionBackwardByWordCommand() {
226    if (commandDelay > 0) {
227        window.setTimeout(execMoveSelectionBackwardByWordCommand, commandCount * commandDelay);
228        commandCount++;
229    }
230    else {
231        execMoveSelectionBackwardByWordCommand();
232    }
233}
234
235//-------------------------------------------------------------------------------------------------------
236
237function execExtendSelectionBackwardByWordCommand() {
238    selection.modify("extend", "backward", "word");
239}
240function extendSelectionBackwardByWordCommand() {
241    if (commandDelay > 0) {
242        window.setTimeout(execExtendSelectionBackwardByWordCommand, commandCount * commandDelay);
243        commandCount++;
244    }
245    else {
246        execExtendSelectionBackwardByWordCommand();
247    }
248}
249
250//-------------------------------------------------------------------------------------------------------
251
252function execMoveSelectionBackwardBySentenceCommand() {
253    selection.modify("move", "backward", "sentence");
254}
255function moveSelectionBackwardBySentenceCommand() {
256    if (commandDelay > 0) {
257        window.setTimeout(execMoveSelectionBackwardBySentenceCommand, commandCount * commandDelay);
258        commandCount++;
259    }
260    else {
261        execMoveSelectionBackwardBySentenceCommand();
262    }
263}
264
265//-------------------------------------------------------------------------------------------------------
266
267function execExtendSelectionBackwardBySentenceCommand() {
268    selection.modify("extend", "backward", "sentence");
269}
270function extendSelectionBackwardBySentenceCommand() {
271    if (commandDelay > 0) {
272        window.setTimeout(execExtendSelectionBackwardBySentenceCommand, commandCount * commandDelay);
273        commandCount++;
274    }
275    else {
276        execExtendSelectionBackwardBySentenceCommand();
277    }
278}
279
280//-------------------------------------------------------------------------------------------------------
281
282function execMoveSelectionBackwardByLineCommand() {
283    selection.modify("move", "backward", "line");
284}
285function moveSelectionBackwardByLineCommand() {
286    if (commandDelay > 0) {
287        window.setTimeout(execMoveSelectionBackwardByLineCommand, commandCount * commandDelay);
288        commandCount++;
289    }
290    else {
291        execMoveSelectionBackwardByLineCommand();
292    }
293}
294
295//-------------------------------------------------------------------------------------------------------
296
297function execExtendSelectionBackwardByLineCommand() {
298    selection.modify("extend", "backward", "line");
299}
300function extendSelectionBackwardByLineCommand() {
301    if (commandDelay > 0) {
302        window.setTimeout(execExtendSelectionBackwardByLineCommand, commandCount * commandDelay);
303        commandCount++;
304    }
305    else {
306        execExtendSelectionBackwardByLineCommand();
307    }
308}
309
310//-------------------------------------------------------------------------------------------------------
311
312function execExtendSelectionBackwardByLineBoundaryCommand() {
313    selection.modify("extend", "backward", "lineBoundary");
314}
315function extendSelectionBackwardByLineBoundaryCommand() {
316    if (commandDelay > 0) {
317        window.setTimeout(execExtendSelectionBackwardByLineBoundaryCommand, commandCount * commandDelay);
318        commandCount++;
319    }
320    else {
321        execExtendSelectionBackwardByLineBoundaryCommand();
322    }
323}
324
325//-------------------------------------------------------------------------------------------------------
326
327function execMoveSelectionBackwardByLineBoundaryCommand() {
328    selection.modify("move", "backward", "lineBoundary");
329}
330function moveSelectionBackwardByLineBoundaryCommand() {
331    if (commandDelay > 0) {
332        window.setTimeout(execMoveSelectionBackwardByLineBoundaryCommand, commandCount * commandDelay);
333        commandCount++;
334    }
335    else {
336        execMoveSelectionBackwardByLineBoundaryCommand();
337    }
338}
339
340//-------------------------------------------------------------------------------------------------------
341
342function doubleClick(x, y) {
343    eventSender.mouseMoveTo(x, y);
344    eventSender.mouseDown();
345    eventSender.mouseUp();
346    eventSender.mouseDown();
347    eventSender.mouseUp();
348}
349
350function doubleClickAtSelectionStart() {
351    var rects = window.getSelection().getRangeAt(0).getClientRects();
352    var x = rects[0].left;
353    var y = rects[0].top;
354    doubleClick(x, y);
355}
356
357//-------------------------------------------------------------------------------------------------------
358
359function execBoldCommand() {
360    document.execCommand("Bold");
361    debugForDumpAsText("execBoldCommand");
362}
363function boldCommand() {
364    if (commandDelay > 0) {
365        window.setTimeout(execBoldCommand, commandCount * commandDelay);
366        commandCount++;
367    }
368    else {
369        execBoldCommand();
370    }
371}
372
373//-------------------------------------------------------------------------------------------------------
374
375function execUnderlineCommand() {
376    document.execCommand("Underline");
377    debugForDumpAsText("execUnderlineCommand");
378}
379function underlineCommand() {
380    if (commandDelay > 0) {
381        window.setTimeout(execUnderlineCommand, commandCount * commandDelay);
382        commandCount++;
383    }
384    else {
385        execUnderlineCommand();
386    }
387}
388
389//-------------------------------------------------------------------------------------------------------
390
391function execFontNameCommand() {
392    document.execCommand("FontName", false, "Courier");
393    debugForDumpAsText("execFontNameCommand");
394}
395function fontNameCommand() {
396    if (commandDelay > 0) {
397        window.setTimeout(execFontNameCommand, commandCount * commandDelay);
398        commandCount++;
399    }
400    else {
401        execFontNameCommand();
402    }
403}
404
405//-------------------------------------------------------------------------------------------------------
406
407function execFontSizeCommand(s) {
408    if (arguments.length == 0 || s == undefined || s.length == 0)
409        s = '12px';
410    document.execCommand("FontSize", false, s);
411    debugForDumpAsText("execFontSizeCommand");
412}
413function fontSizeCommand(s) {
414    if (commandDelay > 0) {
415        window.setTimeout(execFontSizeCommand, commandCount * commandDelay, s);
416        commandCount++;
417    }
418    else {
419        execFontSizeCommand(s);
420    }
421}
422
423//-------------------------------------------------------------------------------------------------------
424
425function execFontSizeDeltaCommand(s) {
426    if (arguments.length == 0 || s == undefined || s.length == 0)
427        s = '1px';
428    document.execCommand("FontSizeDelta", false, s);
429    debugForDumpAsText("execFontSizeDeltaCommand");
430}
431function fontSizeDeltaCommand(s) {
432    if (commandDelay > 0) {
433        window.setTimeout(execFontSizeDeltaCommand, commandCount * commandDelay, s);
434        commandCount++;
435    }
436    else {
437        execFontSizeDeltaCommand(s);
438    }
439}
440
441//-------------------------------------------------------------------------------------------------------
442
443function execItalicCommand() {
444    document.execCommand("Italic");
445    debugForDumpAsText("execItalicCommand");
446}
447function italicCommand() {
448    if (commandDelay > 0) {
449        window.setTimeout(execItalicCommand, commandCount * commandDelay);
450        commandCount++;
451    }
452    else {
453        execItalicCommand();
454    }
455}
456
457
458//-------------------------------------------------------------------------------------------------------
459
460function execJustifyCenterCommand() {
461    document.execCommand("JustifyCenter");
462    debugForDumpAsText("execJustifyCenterCommand");
463}
464function justifyCenterCommand() {
465    if (commandDelay > 0) {
466        window.setTimeout(execJustifyCenterCommand, commandCount * commandDelay);
467        commandCount++;
468    }
469    else {
470        execJustifyCenterCommand();
471    }
472}
473
474
475//-------------------------------------------------------------------------------------------------------
476
477function execJustifyLeftCommand() {
478    document.execCommand("JustifyLeft");
479    debugForDumpAsText("execJustifyLeftCommand");
480}
481function justifyLeftCommand() {
482    if (commandDelay > 0) {
483        window.setTimeout(execJustifyLeftCommand, commandCount * commandDelay);
484        commandCount++;
485    }
486    else {
487        execJustifyLeftCommand();
488    }
489}
490
491
492//-------------------------------------------------------------------------------------------------------
493
494function execJustifyRightCommand() {
495    document.execCommand("JustifyRight");
496    debugForDumpAsText("execJustifyRightCommand");
497}
498function justifyRightCommand() {
499    if (commandDelay > 0) {
500        window.setTimeout(execJustifyRightCommand, commandCount * commandDelay);
501        commandCount++;
502    }
503    else {
504        execJustifyRightCommand();
505    }
506}
507
508//-------------------------------------------------------------------------------------------------------
509
510function execInsertHTMLCommand(html) {
511    document.execCommand("InsertHTML", false, html);
512    debugForDumpAsText("execInsertHTMLCommand");
513}
514function insertHTMLCommand(html) {
515    if (commandDelay > 0) {
516        window.setTimeout(execInsertHTMLCommand, commandCount * commandDelay, html);
517        commandCount++;
518    }
519    else {
520        execInsertHTMLCommand(html);
521    }
522}
523
524//-------------------------------------------------------------------------------------------------------
525
526function execInsertImageCommand(imgSrc) {
527    document.execCommand("InsertImage", false, imgSrc);
528    debugForDumpAsText("execInsertImageCommand");
529}
530function insertImageCommand(imgSrc) {
531    if (commandDelay > 0) {
532        window.setTimeout(execInsertImageCommand, commandCount * commandDelay, imgSrc);
533        commandCount++;
534    }
535    else {
536        execInsertImageCommand(imgSrc);
537    }
538}
539
540//-------------------------------------------------------------------------------------------------------
541
542function execInsertLineBreakCommand() {
543    document.execCommand("InsertLineBreak");
544    debugForDumpAsText("execInsertLineBreakCommand");
545}
546function insertLineBreakCommand() {
547    if (commandDelay > 0) {
548        window.setTimeout(execInsertLineBreakCommand, commandCount * commandDelay);
549        commandCount++;
550    }
551    else {
552        execInsertLineBreakCommand();
553    }
554}
555
556//-------------------------------------------------------------------------------------------------------
557 
558function execInsertParagraphCommand() {
559    document.execCommand("InsertParagraph");
560    debugForDumpAsText("execInsertParagraphCommand");
561}
562function insertParagraphCommand() {
563    if (commandDelay > 0) {
564        window.setTimeout(execInsertParagraphCommand, commandCount * commandDelay);
565        commandCount++;
566    }
567    else {
568        execInsertParagraphCommand();
569    }
570}
571
572//-------------------------------------------------------------------------------------------------------
573
574function execInsertNewlineInQuotedContentCommand() {
575    document.execCommand("InsertNewlineInQuotedContent");
576    debugForDumpAsText("execInsertNewlineInQuotedContentCommand");
577}
578function insertNewlineInQuotedContentCommand() {
579    if (commandDelay > 0) {
580        window.setTimeout(execInsertNewlineInQuotedContentCommand, commandCount * commandDelay);
581        commandCount++;
582    }
583    else {
584        execInsertNewlineInQuotedContentCommand();
585    }
586}
587
588//-------------------------------------------------------------------------------------------------------
589
590function execTypeCharacterCommand(c) {
591    if (arguments.length == 0 || c == undefined || c.length == 0 || c.length > 1)
592        c = 'x';
593    document.execCommand("InsertText", false, c);
594    debugForDumpAsText("execTypeCharacterCommand");
595}
596function typeCharacterCommand(c) {
597    if (commandDelay > 0) {
598        window.setTimeout(execTypeCharacterCommand, commandCount * commandDelay, c);
599        commandCount++;
600    }
601    else {
602        execTypeCharacterCommand(c);
603    }
604}
605
606//-------------------------------------------------------------------------------------------------------
607
608function execSelectAllCommand() {
609    document.execCommand("SelectAll");
610}
611function selectAllCommand() {
612    if (commandDelay > 0) {
613        window.setTimeout(execSelectAllCommand, commandCount * commandDelay);
614        commandCount++;
615    }
616    else {
617        execSelectAllCommand();
618    }
619}
620
621//-------------------------------------------------------------------------------------------------------
622
623function execStrikethroughCommand() {
624    document.execCommand("Strikethrough");
625    debugForDumpAsText("execStrikethroughCommand");
626}
627function strikethroughCommand() {
628    if (commandDelay > 0) {
629        window.setTimeout(execStrikethroughCommand, commandCount * commandDelay);
630        commandCount++;
631    }
632    else {
633        execStrikethroughCommand();
634    }
635}
636
637//-------------------------------------------------------------------------------------------------------
638
639function execUndoCommand() {
640    document.execCommand("Undo");
641    debugForDumpAsText("execUndoCommand");
642}
643function undoCommand() {
644    if (commandDelay > 0) {
645        window.setTimeout(execUndoCommand, commandCount * commandDelay);
646        commandCount++;
647    }
648    else {
649        execUndoCommand();
650    }
651}
652
653//-------------------------------------------------------------------------------------------------------
654
655function execRedoCommand() {
656    document.execCommand("Redo");
657    debugForDumpAsText("execRedoCommand");
658}
659function redoCommand() {
660    if (commandDelay > 0) {
661        window.setTimeout(execRedoCommand, commandCount * commandDelay);
662        commandCount++;
663    }
664    else {
665        execRedoCommand();
666    }
667}
668
669//-------------------------------------------------------------------------------------------------------
670
671function execChangeRootSize() {
672    document.getElementById("root").style.width = "600px";
673}
674function changeRootSize() {
675    if (commandDelay > 0) {
676        window.setTimeout(execChangeRootSize, commandCount * commandDelay);
677        commandCount++;
678    }
679    else {
680        execChangeRootSize();
681    }
682}
683
684//-------------------------------------------------------------------------------------------------------
685
686function execCutCommand() {
687    document.execCommand("Cut");
688    debugForDumpAsText("execCutCommand");
689}
690function cutCommand() {
691    if (commandDelay > 0) {
692        window.setTimeout(execCutCommand, commandCount * commandDelay);
693        commandCount++;
694    }
695    else {
696        execCutCommand();
697    }
698}
699
700//-------------------------------------------------------------------------------------------------------
701
702function execCopyCommand() {
703    document.execCommand("Copy");
704    debugForDumpAsText("execCopyCommand");
705}
706function copyCommand() {
707    if (commandDelay > 0) {
708        window.setTimeout(execCopyCommand, commandCount * commandDelay);
709        commandCount++;
710    }
711    else {
712        execCopyCommand();
713    }
714}
715
716//-------------------------------------------------------------------------------------------------------
717
718function execPasteCommand() {
719    document.execCommand("Paste");
720    debugForDumpAsText("execPasteCommand");
721}
722function pasteCommand() {
723    if (commandDelay > 0) {
724        window.setTimeout(execPasteCommand, commandCount * commandDelay);
725        commandCount++;
726    }
727    else {
728        execPasteCommand();
729    }
730}
731
732//-------------------------------------------------------------------------------------------------------
733
734function execCreateLinkCommand(url) {
735    document.execCommand("CreateLink", false, url);
736    debugForDumpAsText("execCreateLinkCommand");
737}
738function createLinkCommand(url) {
739    if (commandDelay > 0) {
740        window.setTimeout(execCreateLinkCommand, commandCount * commandDelay, url);
741        commandCount++;
742    } else
743        execCreateLinkCommand(url);
744}
745
746//-------------------------------------------------------------------------------------------------------
747
748function execUnlinkCommand() {
749    document.execCommand("Unlink");
750    debugForDumpAsText("execUnlinkCommand");
751}
752function unlinkCommand() {
753    if (commandDelay > 0) {
754        window.setTimeout(execUnlinkCommand, commandCount * commandDelay);
755        commandCount++;
756    } else
757        execUnlinkCommand();
758}
759
760//-------------------------------------------------------------------------------------------------------
761
762function execPasteAndMatchStyleCommand() {
763    document.execCommand("PasteAndMatchStyle");
764    debugForDumpAsText("execPasteAndMatchStyleCommand");
765}
766function pasteAndMatchStyleCommand() {
767    if (commandDelay > 0) {
768        window.setTimeout(execPasteAndMatchStyleCommand, commandCount * commandDelay);
769        commandCount++;
770    }
771    else {
772        execPasteAndMatchStyleCommand();
773    }
774}
775
776//-------------------------------------------------------------------------------------------------------
777
778function execDeleteCommand() {
779    document.execCommand("Delete");
780    debugForDumpAsText("execDeleteCommand");
781}
782function deleteCommand() {
783    if (commandDelay > 0) {
784        window.setTimeout(execDeleteCommand, commandCount * commandDelay);
785        commandCount++;
786    }
787    else {
788        execDeleteCommand();
789    }
790}
791
792//-------------------------------------------------------------------------------------------------------
793
794function execForwardDeleteCommand() {
795    document.execCommand("ForwardDelete");
796    debugForDumpAsText("execForwardDeleteCommand");
797}
798function forwardDeleteCommand() {
799    if (commandDelay > 0) {
800        window.setTimeout(execForwardDeleteCommand, commandCount * commandDelay);
801        commandCount++;
802    }
803    else {
804        execForwardDeleteCommand();
805    }
806}
807
808//-------------------------------------------------------------------------------------------------------
809
810function runEditingTest() {
811    if (window.layoutTestController)
812        layoutTestController.dumpEditingCallbacks();
813
814    var elem = document.getElementById("test");
815    var selection = window.getSelection();
816    selection.setPosition(elem, 0);
817    editingTest();
818}
819
820var dumpAsText = false;
821var markupResultList = document.createElement('ol');
822
823function runDumpAsTextEditingTest(enableCallbacks) {
824    if (window.layoutTestController) {
825         layoutTestController.dumpAsText();
826         if (enableCallbacks)
827            layoutTestController.dumpEditingCallbacks();
828     }
829
830    dumpAsText = true;
831
832    var elem = document.getElementById("test");
833    var selection = window.getSelection();
834    selection.setPosition(elem, 0);
835    editingTest();
836
837    document.body.appendChild(markupResultList);
838}
839
840function debugForDumpAsText(name) {
841    if (dumpAsText && document.getElementById("root")) {
842        var newItem = document.createElement('li');
843        newItem.appendChild(document.createTextNode(name+": "+document.getElementById("root").innerHTML));
844        markupResultList.appendChild(newItem);
845    }
846}
847
848//-------------------------------------------------------------------------------------------------------
849
850
851function execBackColorCommand() {
852    document.execCommand("BackColor", false, "Chartreuse");
853    debugForDumpAsText('execBackColorCommand');
854}
855function backColorCommand() {
856    if (commandDelay > 0) {
857        window.setTimeout(execBackColorCommand, commandCount * commandDelay);
858        commandCount++;
859    }
860    else {
861        execBackColorCommand();
862    }
863}
864
865
866function execForeColorCommand(color) {
867    document.execCommand("ForeColor", false, color);
868    debugForDumpAsText('execForeColorCommand');
869}
870function foreColorCommand(color) {
871    if (commandDelay > 0) {
872        window.setTimeout(execForeColorCommand, commandCount * commandDelay, color);
873        commandCount++;
874    } else
875        execForeColorCommand(color);
876}
877
878//-------------------------------------------------------------------------------------------------------
879
880
881function runCommand(command, arg1, arg2) {
882    document.execCommand(command,arg1,arg2);
883}
884
885function executeCommand(command,arg1,arg2) {
886    if (commandDelay > 0) {
887        window.setTimeout(runCommand, commandCount * commandDelay);
888        commandCount++;
889    }
890    else {
891        runCommand(command,arg1,arg2);
892    }
893}
894
895
Full Screen

fckcommands.js

Source: fckcommands.js Github

copy
1/*
2 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
3 * Copyright (C) 2003-2009 Frederico Caldeira Knabben
4 *
5 * == BEGIN LICENSE ==
6 *
7 * Licensed under the terms of any of the following licenses at your
8 * choice:
9 *
10 *  - GNU General Public License Version 2 or later (the "GPL")
11 *    http://www.gnu.org/licenses/gpl.html
12 *
13 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
14 *    http://www.gnu.org/licenses/lgpl.html
15 *
16 *  - Mozilla Public License Version 1.1 or later (the "MPL")
17 *    http://www.mozilla.org/MPL/MPL-1.1.html
18 *
19 * == END LICENSE ==
20 *
21 * Define all commands available in the editor.
22 */
23
24var FCKCommands = FCK.Commands = new Object() ;
25FCKCommands.LoadedCommands = new Object() ;
26
27FCKCommands.RegisterCommand = function( commandName, command )
28{
29	this.LoadedCommands[ commandName ] = command ;
30}
31
32FCKCommands.GetCommand = function( commandName )
33{
34	var oCommand = FCKCommands.LoadedCommands[ commandName ] ;
35
36	if ( oCommand )
37		return oCommand ;
38
39	switch ( commandName )
40	{
41		case 'Bold'			:
42		case 'Italic'		:
43		case 'Underline'	:
44		case 'StrikeThrough':
45		case 'Subscript'	:
46		case 'Superscript'	: oCommand = new FCKCoreStyleCommand( commandName ) ; break ;
47
48		case 'RemoveFormat'	: oCommand = new FCKRemoveFormatCommand() ; break ;
49
50		case 'DocProps'		: oCommand = new FCKDialogCommand( 'DocProps'	, FCKLang.DocProps				, 'dialog/fck_docprops.html'	, 400, 380, FCKCommands.GetFullPageState ) ; break ;
51		case 'Templates'	: oCommand = new FCKDialogCommand( 'Templates'	, FCKLang.DlgTemplatesTitle		, 'dialog/fck_template.html'	, 380, 450 ) ; break ;
52		case 'Link'			: oCommand = new FCKDialogCommand( 'Link'		, FCKLang.DlgLnkWindowTitle		, 'dialog/fck_link.html'		, 400, 300 ) ; break ;
53		case 'Unlink'		: oCommand = new FCKUnlinkCommand() ; break ;
54		case 'VisitLink'	: oCommand = new FCKVisitLinkCommand() ; break ;
55		case 'Anchor'		: oCommand = new FCKDialogCommand( 'Anchor'		, FCKLang.DlgAnchorTitle		, 'dialog/fck_anchor.html'		, 370, 160 ) ; break ;
56		case 'AnchorDelete'	: oCommand = new FCKAnchorDeleteCommand() ; break ;
57		case 'BulletedList'	: oCommand = new FCKDialogCommand( 'BulletedList', FCKLang.BulletedListProp		, 'dialog/fck_listprop.html?UL'	, 370, 160 ) ; break ;
58		case 'NumberedList'	: oCommand = new FCKDialogCommand( 'NumberedList', FCKLang.NumberedListProp		, 'dialog/fck_listprop.html?OL'	, 370, 160 ) ; break ;
59		case 'About'		: oCommand = new FCKDialogCommand( 'About'		, FCKLang.About					, 'dialog/fck_about.html'		, 420, 330, function(){ return FCK_TRISTATE_OFF ; } ) ; break ;
60		case 'Find'			: oCommand = new FCKDialogCommand( 'Find'		, FCKLang.DlgFindAndReplaceTitle, 'dialog/fck_replace.html'		, 340, 230, null, null, 'Find' ) ; break ;
61		case 'Replace'		: oCommand = new FCKDialogCommand( 'Replace'	, FCKLang.DlgFindAndReplaceTitle, 'dialog/fck_replace.html'		, 340, 230, null, null, 'Replace' ) ; break ;
62
63		case 'Image'		: oCommand = new FCKDialogCommand( 'Image'		, FCKLang.DlgImgTitle			, 'dialog/fck_image.html'		, 450, 390 ) ; break ;
64		case 'Flash'		: oCommand = new FCKDialogCommand( 'Flash'		, FCKLang.DlgFlashTitle			, 'dialog/fck_flash.html'		, 450, 390 ) ; break ;
65		case 'SpecialChar'	: oCommand = new FCKDialogCommand( 'SpecialChar', FCKLang.DlgSpecialCharTitle	, 'dialog/fck_specialchar.html'	, 400, 290 ) ; break ;
66		case 'Smiley'		: oCommand = new FCKDialogCommand( 'Smiley'		, FCKLang.DlgSmileyTitle		, 'dialog/fck_smiley.html'		, FCKConfig.SmileyWindowWidth, FCKConfig.SmileyWindowHeight ) ; break ;
67		case 'Table'		: oCommand = new FCKDialogCommand( 'Table'		, FCKLang.DlgTableTitle			, 'dialog/fck_table.html'		, 480, 250 ) ; break ;
68		case 'TableProp'	: oCommand = new FCKDialogCommand( 'Table'		, FCKLang.DlgTableTitle			, 'dialog/fck_table.html?Parent', 480, 250 ) ; break ;
69		case 'TableCellProp': oCommand = new FCKDialogCommand( 'TableCell'	, FCKLang.DlgCellTitle			, 'dialog/fck_tablecell.html'	, 550, 240 ) ; break ;
70
71		case 'Style'		: oCommand = new FCKStyleCommand() ; break ;
72
73		case 'FontName'		: oCommand = new FCKFontNameCommand() ; break ;
74		case 'FontSize'		: oCommand = new FCKFontSizeCommand() ; break ;
75		case 'FontFormat'	: oCommand = new FCKFormatBlockCommand() ; break ;
76
77		case 'Source'		: oCommand = new FCKSourceCommand() ; break ;
78		case 'Preview'		: oCommand = new FCKPreviewCommand() ; break ;
79		case 'Save'			: oCommand = new FCKSaveCommand() ; break ;
80		case 'NewPage'		: oCommand = new FCKNewPageCommand() ; break ;
81		case 'PageBreak'	: oCommand = new FCKPageBreakCommand() ; break ;
82		case 'Rule'			: oCommand = new FCKRuleCommand() ; break ;
83		case 'Nbsp'			: oCommand = new FCKNbsp() ; break ;
84
85		case 'TextColor'	: oCommand = new FCKTextColorCommand('ForeColor') ; break ;
86		case 'BGColor'		: oCommand = new FCKTextColorCommand('BackColor') ; break ;
87
88		case 'Paste'		: oCommand = new FCKPasteCommand() ; break ;
89		case 'PasteText'	: oCommand = new FCKPastePlainTextCommand() ; break ;
90		case 'PasteWord'	: oCommand = new FCKPasteWordCommand() ; break ;
91
92		case 'JustifyLeft'	: oCommand = new FCKJustifyCommand( 'left' ) ; break ;
93		case 'JustifyCenter'	: oCommand = new FCKJustifyCommand( 'center' ) ; break ;
94		case 'JustifyRight'	: oCommand = new FCKJustifyCommand( 'right' ) ; break ;
95		case 'JustifyFull'	: oCommand = new FCKJustifyCommand( 'justify' ) ; break ;
96		case 'Indent'	: oCommand = new FCKIndentCommand( 'indent', FCKConfig.IndentLength ) ; break ;
97		case 'Outdent'	: oCommand = new FCKIndentCommand( 'outdent', FCKConfig.IndentLength * -1 ) ; break ;
98		case 'Blockquote'	: oCommand = new FCKBlockQuoteCommand() ; break ;
99		case 'CreateDiv'	: oCommand = new FCKDialogCommand( 'CreateDiv', FCKLang.CreateDiv, 'dialog/fck_div.html', 380, 210, null, null, true ) ; break ;
100		case 'EditDiv'		: oCommand = new FCKDialogCommand( 'EditDiv', FCKLang.EditDiv, 'dialog/fck_div.html', 380, 210, null, null, false ) ; break ;
101		case 'DeleteDiv'	: oCommand = new FCKDeleteDivCommand() ; break ;
102
103		case 'TableInsertRowAfter'		: oCommand = new FCKTableCommand('TableInsertRowAfter') ; break ;
104		case 'TableInsertRowBefore'		: oCommand = new FCKTableCommand('TableInsertRowBefore') ; break ;
105		case 'TableDeleteRows'			: oCommand = new FCKTableCommand('TableDeleteRows') ; break ;
106		case 'TableInsertColumnAfter'	: oCommand = new FCKTableCommand('TableInsertColumnAfter') ; break ;
107		case 'TableInsertColumnBefore'	: oCommand = new FCKTableCommand('TableInsertColumnBefore') ; break ;
108		case 'TableDeleteColumns'		: oCommand = new FCKTableCommand('TableDeleteColumns') ; break ;
109		case 'TableInsertCellAfter'		: oCommand = new FCKTableCommand('TableInsertCellAfter') ; break ;
110		case 'TableInsertCellBefore'	: oCommand = new FCKTableCommand('TableInsertCellBefore') ; break ;
111		case 'TableDeleteCells'			: oCommand = new FCKTableCommand('TableDeleteCells') ; break ;
112		case 'TableMergeCells'			: oCommand = new FCKTableCommand('TableMergeCells') ; break ;
113		case 'TableMergeRight'			: oCommand = new FCKTableCommand('TableMergeRight') ; break ;
114		case 'TableMergeDown'			: oCommand = new FCKTableCommand('TableMergeDown') ; break ;
115		case 'TableHorizontalSplitCell'	: oCommand = new FCKTableCommand('TableHorizontalSplitCell') ; break ;
116		case 'TableVerticalSplitCell'	: oCommand = new FCKTableCommand('TableVerticalSplitCell') ; break ;
117		case 'TableDelete'				: oCommand = new FCKTableCommand('TableDelete') ; break ;
118
119		case 'Form'			: oCommand = new FCKDialogCommand( 'Form'		, FCKLang.Form			, 'dialog/fck_form.html'		, 380, 210 ) ; break ;
120		case 'Checkbox'		: oCommand = new FCKDialogCommand( 'Checkbox'	, FCKLang.Checkbox		, 'dialog/fck_checkbox.html'	, 380, 200 ) ; break ;
121		case 'Radio'		: oCommand = new FCKDialogCommand( 'Radio'		, FCKLang.RadioButton	, 'dialog/fck_radiobutton.html'	, 380, 200 ) ; break ;
122		case 'TextField'	: oCommand = new FCKDialogCommand( 'TextField'	, FCKLang.TextField		, 'dialog/fck_textfield.html'	, 380, 210 ) ; break ;
123		case 'Textarea'		: oCommand = new FCKDialogCommand( 'Textarea'	, FCKLang.Textarea		, 'dialog/fck_textarea.html'	, 380, 210 ) ; break ;
124		case 'HiddenField'	: oCommand = new FCKDialogCommand( 'HiddenField', FCKLang.HiddenField	, 'dialog/fck_hiddenfield.html'	, 380, 190 ) ; break ;
125		case 'Button'		: oCommand = new FCKDialogCommand( 'Button'		, FCKLang.Button		, 'dialog/fck_button.html'		, 380, 210 ) ; break ;
126		case 'Select'		: oCommand = new FCKDialogCommand( 'Select'		, FCKLang.SelectionField, 'dialog/fck_select.html'		, 400, 340 ) ; break ;
127		case 'ImageButton'	: oCommand = new FCKDialogCommand( 'ImageButton', FCKLang.ImageButton	, 'dialog/fck_image.html?ImageButton', 450, 390 ) ; break ;
128
129		case 'SpellCheck'	: oCommand = new FCKSpellCheckCommand() ; break ;
130		case 'FitWindow'	: oCommand = new FCKFitWindow() ; break ;
131
132		case 'Undo'	: oCommand = new FCKUndoCommand() ; break ;
133		case 'Redo'	: oCommand = new FCKRedoCommand() ; break ;
134		case 'Copy'	: oCommand = new FCKCutCopyCommand( false ) ; break ;
135		case 'Cut'	: oCommand = new FCKCutCopyCommand( true ) ; break ;
136
137		case 'SelectAll'			: oCommand = new FCKSelectAllCommand() ; break ;
138		case 'InsertOrderedList'	: oCommand = new FCKListCommand( 'insertorderedlist', 'ol' ) ; break ;
139		case 'InsertUnorderedList'	: oCommand = new FCKListCommand( 'insertunorderedlist', 'ul' ) ; break ;
140		case 'ShowBlocks' : oCommand = new FCKShowBlockCommand( 'ShowBlocks', FCKConfig.StartupShowBlocks ? FCK_TRISTATE_ON : FCK_TRISTATE_OFF ) ; break ;
141
142		// Generic Undefined command (usually used when a command is under development).
143		case 'Undefined'	: oCommand = new FCKUndefinedCommand() ; break ;
144
145		// By default we assume that it is a named command.
146		default:
147			if ( FCKRegexLib.NamedCommands.test( commandName ) )
148				oCommand = new FCKNamedCommand( commandName ) ;
149			else
150			{
151				alert( FCKLang.UnknownCommand.replace( /%1/g, commandName ) ) ;
152				return null ;
153			}
154	}
155
156	FCKCommands.LoadedCommands[ commandName ] = oCommand ;
157
158	return oCommand ;
159}
160
161// Gets the state of the "Document Properties" button. It must be enabled only
162// when "Full Page" editing is available.
163FCKCommands.GetFullPageState = function()
164{
165	return FCKConfig.FullPage ? FCK_TRISTATE_OFF : FCK_TRISTATE_DISABLED ;
166}
167
168
169FCKCommands.GetBooleanState = function( isDisabled )
170{
171	return isDisabled ? FCK_TRISTATE_DISABLED : FCK_TRISTATE_OFF ;
172}
173
Full Screen

navtreeindex0.js

Source: navtreeindex0.js Github

copy
1var NAVTREEINDEX0 =
2{
3"_mtk___packet_8h_source.html":[2,0,0,0,0],
4"dir_29c008a3d6007eb363d0585658336295.html":[2,0,0,0],
5"dir_47892d94e1d0bf342f4cec549ae2e06e.html":[2,0,0],
6"dir_74389ed8173ad57b461b9d623a1f3867.html":[2,0],
7"files.html":[2],
8"group__pmtk__appendix.html":[1,0],
9"group__pmtk__command.html":[1,1],
10"group__pmtk__command.html#ga6012e5fa857099f0e5fd61bb6d1f84be":[1,1,0],
11"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea00bfa74b9ab4be1cb538d6720808c007":[1,1,0,89],
12"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea037ee569708e29066d04d6b24a589998":[1,1,0,92],
13"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea05ed0801721f44c80238d29c18bf9a02":[1,1,0,51],
14"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea063d8815c8ee51cd08acda80daa1e81e":[1,1,0,64],
15"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea08e334f61a3facbee28df70210d878d3":[1,1,0,66],
16"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea1265f33d4aba1384f11ef5872119f573":[1,1,0,22],
17"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea1397b023e0d48ec75adabef05a22e061":[1,1,0,87],
18"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea144340c8d86359dce90bcdc73a1c3f47":[1,1,0,47],
19"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea153232faf17c74620043aa97852fbf93":[1,1,0,33],
20"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea1552640a94f244c1a0c27e14bafdd426":[1,1,0,100],
21"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea19e1adb3e180af8c09c84c63ae9e789f":[1,1,0,90],
22"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea1c16678ddc76189e4215f65893655821":[1,1,0,19],
23"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea1ce00a71b2d49bed618e16eaf551cd9a":[1,1,0,52],
24"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea1f021ebe90b969144edb422d2e41d62d":[1,1,0,88],
25"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea2625b3468647086a44ea53b5e7b58288":[1,1,0,77],
26"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea2855fd322f2e27500a2844b7776c1061":[1,1,0,26],
27"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea2ac3e95cf254fb53202aa90270d17492":[1,1,0,98],
28"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea2edaf5cac4aa4a2fc73b5312d7428b24":[1,1,0,41],
29"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea32f454682a68a9c3bccef8e25b15b8ba":[1,1,0,63],
30"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea349fe122413c42817cdd46f0888a6c5f":[1,1,0,61],
31"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea377b4ea82070d970dbfa11b6cf426594":[1,1,0,43],
32"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea37e936f37aef1900a7e5a87fddbf8861":[1,1,0,11],
33"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea3ace760b44e085e0142fef46f1837e0d":[1,1,0,4],
34"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea3c5bcc16f2cb139831b0c05d7e77d4d3":[1,1,0,3],
35"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea3f53bb52d96bb7739b2c6cf17d05c268":[1,1,0,76],
36"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea3fb309c02edc5daf43592d9f2959928e":[1,1,0,46],
37"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea42011586fa1fca5a3643cac6b05b60c0":[1,1,0,97],
38"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea466830c3723b4afc4ffaa5d389f528c3":[1,1,0,9],
39"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea467817db20c8c590ea5c065e5faa1f53":[1,1,0,37],
40"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea48aff60bb41ea828e9ccaf810f3f47f9":[1,1,0,7],
41"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea55bd5f9f60b4113329eef6c1ad3ed296":[1,1,0,50],
42"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea56cefa0d6551ed89dc1974929c35a875":[1,1,0,23],
43"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea5d520ba1d9f1b61bcce90b521632c32d":[1,1,0,16],
44"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea6732848b6864eda4c0bf2d6e665ebeb9":[1,1,0,71],
45"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea684eb8a711e4201f6de6aa5067100f21":[1,1,0,0],
46"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea69756339c6d97ad458e3ccadc60e3059":[1,1,0,14],
47"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea6b852645bdf9e0680bb45017559105e5":[1,1,0,86],
48"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea6dc3a9739c6f1928716ee2c97e28204b":[1,1,0,82],
49"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea72e57a8d23a2f9d09d2c9685cb93d9c7":[1,1,0,81],
50"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea7bc54655b91905cd5de5770adef0b58e":[1,1,0,91],
51"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea7bd230a1d411831e909a6bdeaec2f7eb":[1,1,0,5],
52"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea7cff33d092ea4b69a868898082a9383d":[1,1,0,8],
53"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea8060ce5da125915a4b00f7aff4220889":[1,1,0,30],
54"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea807d8bf7605b87d790f4593f06dbb2f6":[1,1,0,69],
55"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea815b92d27ea9a9adb14e4dbf2c6eb939":[1,1,0,6],
56"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea8371d87a4fab64e97e5a53200fa6cda2":[1,1,0,28],
57"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea83e665f81bc20f6d8e425e0749f3f288":[1,1,0,29],
58"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea86e6074288800bb3626e16e735dcc6f8":[1,1,0,96],
59"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea8782a9c367032850565b8d449225ddda":[1,1,0,31],
60"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea8789b7bc5c5abad0ab627ad50aba79d4":[1,1,0,17],
61"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea8a11d9cb5cca390770b0f6b6ffc64b5a":[1,1,0,56],
62"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea8d1f075aa6a35cbca97ca5fb7ac07fa1":[1,1,0,49],
63"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea8ddbdbf2649933cc970f831500dfe66f":[1,1,0,39],
64"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea94e91e0b1e6fa7207f32a1f49bdf5c94":[1,1,0,57],
65"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea9873165a5537dafa3b4c57dbea50d258":[1,1,0,45],
66"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea9b4d921b1fe8ac8f59195773a81a9aa3":[1,1,0,48],
67"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea9b58e4f853bd537a8d44fe1021c57bb1":[1,1,0,34],
68"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea9c0c1ca48067fdd105f70e04487ff701":[1,1,0,65],
69"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea9c90d1ead04106ba8d52a532d9e0cb14":[1,1,0,83],
70"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea9e2fbd7c984e5e6e082b3825b060ca00":[1,1,0,25],
71"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bea9e91e2fdcbc35d2cb5e9c9fe9f564e98":[1,1,0,18],
72"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beaa23a5c6e8e35b989498e6b6b101731e7":[1,1,0,24],
73"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beaa84af36afd8dbaa82b104bbf0b263592":[1,1,0,59],
74"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beaa8d6e40f333aff7e4435f88809042ac8":[1,1,0,40],
75"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beaa932726f1937dfdd7955fbee8819489a":[1,1,0,55],
76"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beaa93754c9b38d52d93c691c0ab53a7b7d":[1,1,0,94],
77"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beaa957fa7398464443cff5412f35fd0611":[1,1,0,2],
78"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beaa99559cfe61a412f1e302dc39021b879":[1,1,0,53],
79"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beaafb3f64364e21510313190785e3fc7d0":[1,1,0,36],
80"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beab0a80b268936db695d5a7ccff70e10bf":[1,1,0,78],
81"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beab139be3d7b4b2482f2838bac51db2b39":[1,1,0,62],
82"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beab2b4ec0b0540e9fc51bc8a839d44c8ff":[1,1,0,68],
83"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beab3eae09a18fc5417f8b359d9efdfd235":[1,1,0,60],
84"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beab7a9a31d9329df65b587ae512e1e6a14":[1,1,0,13],
85"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beab85d515c5cb70af97c6afb7f15e225b2":[1,1,0,70],
86"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beabadd7524424255f446ccfd0a37b1df97":[1,1,0,72],
87"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beabbbb799ada6d27a16cb6a9e7fabcc0fd":[1,1,0,27],
88"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beabf86ac7cc7d3b0ce907b0a86e6a1338b":[1,1,0,1],
89"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beac6d9aff834a28ac4feddf34a66102a43":[1,1,0,85],
90"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beac94b5ff1087757868d8afeff20c011fa":[1,1,0,20],
91"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beaca811436d2d5072939d0f5cee493231c":[1,1,0,12],
92"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beace569382848d8559a16fa090e8d56100":[1,1,0,42],
93"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bead2312b41c26e764ef34621c560f9973c":[1,1,0,58],
94"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bead7650c8cb304121491fdf61bc284c036":[1,1,0,80],
95"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bead7e27c02b08d6ff4296f7a67a00dfe26":[1,1,0,44],
96"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bead90684782d20bd184adebce214da0fb7":[1,1,0,74],
97"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84bead90d6c9f7c3e751fd1cab1b92187bfb0":[1,1,0,95],
98"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beadd3af74a2c6d9ea8a5411dfdb51e93a4":[1,1,0,99],
99"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beae2dbe959ff5bc2dcd3dc71a92d5c053c":[1,1,0,93],
100"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beae4a762e079462ab42723d0052ad9c5b4":[1,1,0,73],
101"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beae8b254db5898fe8f36f6f650d81cb0d1":[1,1,0,79],
102"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beae96a7db722c3fbaececd2c8d9a45b19c":[1,1,0,84],
103"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beae99971090e79d0b006294059e32301b0":[1,1,0,67],
104"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beaeb41c59cd96e6d16e343046893ff7442":[1,1,0,32],
105"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beaec48bc94e3f15bdf3f9eda6d76fbd7ab":[1,1,0,21],
106"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beaf1a7e2d71a17c147d1ef007986a29cfb":[1,1,0,54],
107"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beaf38eaf459a6e12d9579a52ea433d2b3b":[1,1,0,15],
108"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beaf8a05f41e01df87665ca9237aa9f416e":[1,1,0,75],
109"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beaf8f88476f893e2e7445714372c99b6f3":[1,1,0,10],
110"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beafab5347f328ae50a3b524cad27b2be8d":[1,1,0,35],
111"group__pmtk__command.html#gga6012e5fa857099f0e5fd61bb6d1f84beaff110d710ff9d5961dd33c7291e5824d":[1,1,0,38],
112"index.html":[0],
113"index.html":[],
114"index.html#COMMAND_Chapter":[0,1],
115"index.html#COMMAND_List_Chapter":[0,2],
116"index.html#PMTK_Overview":[0,0],
117"index.html#Version_Chapter":[0,3],
118"index.html#license":[0,4],
119"modules.html":[1],
120"pages.html":[]
121};
122
Full Screen

Accelerate Your Automation Test Cycles With LambdaTest

Leverage LambdaTest’s cloud-based platform to execute your automation tests in parallel and trim down your test execution time significantly. Your first 100 automation testing minutes are on us.

Try LambdaTest

Run JavaScript Tests on LambdaTest Cloud Grid

Execute automation tests with Nightwatch on a cloud-based Grid of 3000+ real browsers and operating systems for both web and mobile applications.

Test now for Free
LambdaTestX

We use cookies to give you the best experience. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. Learn More in our Cookies policy, Privacy & Terms of service

Allow Cookie
Sarah

I hope you find the best code examples for your project.

If you want to accelerate automated browser testing, try LambdaTest. Your first 100 automation testing minutes are FREE.

Sarah Elson (Product & Growth Lead)