Skip to content

Commit 98889cc

Browse files
committed
fix indentation
1 parent 8be1c76 commit 98889cc

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

dotnet/test/common/ExecutingJavascriptTest.cs

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,8 @@ public void ExecutingLargeJavaScript()
649649
var browserbot = {
650650
651651
triggerEvent: function(element, eventType, canBubble, controlKeyDown, altKeyDown, shiftKeyDown, metaKeyDown) {
652-
canBubble = (typeof(canBubble) == undefined) ? true: canBubble;
652+
canBubble = (typeof(canBubble) == undefined) ? true : canBubble;
653+
653654
if (element.fireEvent && element.ownerDocument && element.ownerDocument.createEventObject) {
654655
// IE
655656
var evt = this.createEventObject(element, controlKeyDown, altKeyDown, shiftKeyDown, metaKeyDown);
@@ -659,27 +660,28 @@ public void ExecutingLargeJavaScript()
659660
660661
try {
661662
evt.shiftKey = shiftKeyDown;
662-
evt.metaKey = metaKeyDown;
663+
evt.metaKey = metaKeyDown;
663664
evt.altKey = altKeyDown;
664-
evt.ctrlKey = controlKeyDown;
665+
evt.ctrlKey = controlKeyDown;
665666
} catch(e) {
666-
// Nothing sane to do
667-
}
667+
// Nothing sane to do
668+
}
668669
669670
evt.initEvent(eventType, canBubble, true);
670671
return element.dispatchEvent(evt);
671-
}
672+
}
672673
},
673674
674675
getVisibleText: function() {
675676
var selection = getSelection();
676677
var range = document.createRange();
677678
range.selectNodeContents(document.documentElement);
678679
selection.addRange(range);
679-
var string = selection.toString();
680+
681+
var string = selection.toString();
680682
selection.removeAllRanges();
681683
682-
return string;
684+
return string;
683685
},
684686
685687
getOuterHTML: function(element) {
@@ -691,9 +693,9 @@ public void ExecutingLargeJavaScript()
691693
throw "can't get outerHTML in this browser";
692694
}
693695
}
696+
};
694697
695-
696-
};return browserbot.getOuterHTML.apply(browserbot, arguments);
698+
return browserbot.getOuterHTML.apply(browserbot, arguments);
697699
""";
698700

699701
driver.Url = javascriptPage;

0 commit comments

Comments
 (0)