Skip to content

Commit 5445359

Browse files
author
Vasyl Vavrychuk
committed
semicolon
1 parent 9f7d75b commit 5445359

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

web/webdriver-app.js

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function getXPath(node) {
8282

8383
webdriver.FirstSessionBuilder = function() {
8484
webdriver.AbstractBuilder.call(this);
85-
}
85+
};
8686

8787
webdriver.FirstSessionBuilder.prototype = new webdriver.AbstractBuilder();
8888

@@ -105,22 +105,22 @@ webdriver.WebDriver.prototype.visualizerGetSource = function() {
105105
return this.schedule(
106106
new webdriver.Command('visualizerGetSource'),
107107
'WebDriver.visualizerGetSource()');
108-
}
108+
};
109109

110110
webdriver.WebDriver.prototype.visualizerShowPoint = function() {
111111
webdriver.http.Executor.COMMAND_MAP_['visualizerShowPoint'] = {
112112
method: 'GET', path: '/session/:sessionId/-cisco-visualizer-show-point'};
113113
return this.schedule(
114114
new webdriver.Command('visualizerShowPoint'),
115115
'WebDriver.visualizerShowPoint()');
116-
}
116+
};
117117

118118
window.onerror = function(errorMsg, url, lineNumber, columnNumber, error) {
119119
console.log(error.stack);
120120
return false;
121-
}
121+
};
122122

123-
var Util = function() {}
123+
var Util = function() {};
124124
Util.WebDriverKeyFromJs = function(keyCode) {
125125
switch (keyCode) {
126126
case 8: return webdriver.Key.BACK_SPACE;
@@ -186,7 +186,7 @@ Util.WebDriverKeyFromJs = function(keyCode) {
186186
//case 221: return ]; // close bracket
187187
//case 222: return '; // single quote
188188
}
189-
}
189+
};
190190

191191
function VisualizerXsltProcessors() {
192192
this.widget = this._create('widget_view_visualizer.xsl');
@@ -198,7 +198,7 @@ VisualizerXsltProcessors.prototype.get = function(webPage) {
198198
return this.widget;
199199
if (webPage.endsWith('.qml'))
200200
return this.qml;
201-
}
201+
};
202202

203203
VisualizerXsltProcessors.prototype._create = function(name) {
204204
var stylesheet = loadFile(name);
@@ -210,7 +210,7 @@ VisualizerXsltProcessors.prototype._create = function(name) {
210210
} catch (err) {
211211
console.log(err);
212212
}
213-
}
213+
};
214214

215215
function VisualizerController() {
216216
this.xsltProcessors = new VisualizerXsltProcessors();
@@ -224,24 +224,24 @@ VisualizerController.prototype.updateSource = function(webPage) {
224224
self.showVisualizationWindow(source, targetSize);
225225
});
226226
});
227-
}
227+
};
228228

229229
VisualizerController.prototype.quit = function() {
230230
this.webPage = null;
231231
if (this.visualizationWin) {
232232
this.visualizationWin.close();
233233
this.visualizationWin = null;
234234
}
235-
}
235+
};
236236

237237
VisualizerController.prototype.isVisualizerOpened = function() {
238238
return this.visualizationWin && !this.visualizationWin.closed && this.visualizationWin.innerHeight > 0;
239-
}
239+
};
240240

241241
VisualizerController.prototype.openVisualizationWindow = function(size) {
242242
var winParams = 'width=' + size.width + ',height=' + size.height;
243243
this.visualizationWin = window.open('', '', winParams);
244-
}
244+
};
245245

246246
VisualizerController.prototype.visualizerAssignEventHandlers = function() {
247247
var self = this;
@@ -259,7 +259,7 @@ VisualizerController.prototype.visualizerAssignEventHandlers = function() {
259259
}
260260

261261
return true;
262-
}
262+
};
263263

264264
win.document.onkeyup = function(event) {
265265
var key = Util.WebDriverKeyFromJs(event.keyCode);
@@ -275,7 +275,7 @@ VisualizerController.prototype.visualizerAssignEventHandlers = function() {
275275
}
276276

277277
return true;
278-
}
278+
};
279279

280280
win.document.onmousedown = function(event) {
281281
var disableMouseEvents = document.getElementsByName('disableMouseEvents')[0].checked;
@@ -289,7 +289,7 @@ VisualizerController.prototype.visualizerAssignEventHandlers = function() {
289289
mouseMove(target, {x: event.offsetX, y: event.offsetY}).
290290
mouseDown(event.button).
291291
perform();
292-
}
292+
};
293293

294294
win.document.onmouseup = function(event) {
295295
var disableMouseEvents = document.getElementsByName('disableMouseEvents')[0].checked;
@@ -303,7 +303,7 @@ VisualizerController.prototype.visualizerAssignEventHandlers = function() {
303303
mouseMove(target, {x: event.offsetX, y: event.offsetY}).
304304
mouseUp(event.button).
305305
perform();
306-
}
306+
};
307307

308308
win.document.onclick = function(event) {
309309
var disableMouseEvents = document.getElementsByName('disableMouseEvents')[0].checked;
@@ -327,7 +327,7 @@ VisualizerController.prototype.visualizerAssignEventHandlers = function() {
327327
then(function() {
328328
return self.driver.visualizerShowPoint();
329329
});
330-
}
330+
};
331331

332332
Hammer.detection.gestures = [];
333333
Hammer.READY = false;
@@ -425,7 +425,7 @@ VisualizerController.prototype.visualizerAssignEventHandlers = function() {
425425
touchPinchZoom(target, event.gesture.scale).
426426
perform();
427427
});
428-
}
428+
};
429429

430430
VisualizerController.prototype.showVisualizationWindow = function(source, size) {
431431
var isQt = this.webPage.startsWith('qtwidget://') || this.webPage.endsWith('.qml');
@@ -452,7 +452,7 @@ VisualizerController.prototype.showVisualizationWindow = function(source, size)
452452
}
453453

454454
this.visualizerAssignEventHandlers();
455-
}
455+
};
456456

457457
function WebDriverJsController() {
458458
this.visualizer = new VisualizerController();
@@ -485,31 +485,31 @@ WebDriverJsController.prototype._constructWebDriver = function() {
485485
if (localStorage)
486486
localStorage.webPage = webPage;
487487
}
488-
}
488+
};
489489

490490
WebDriverJsController.prototype.driver = function() {
491491
if (this._driver === null)
492492
this._constructWebDriver();
493493
return this._driver;
494-
}
494+
};
495495

496496
WebDriverJsController.prototype.get = function() {
497497
this.webPage = null;
498498
this._constructWebDriver();
499-
}
499+
};
500500

501501
WebDriverJsController.prototype.source = function() {
502502
this._constructWebDriver();
503503
this.visualizer.updateSource(this.webPage);
504-
}
504+
};
505505

506506
WebDriverJsController.prototype.screenshot = function() {
507507
this.driver().takeScreenshot().then(function(data) {
508508
data = base64_arraybuffer.decode(data);
509509
data = new Blob([data], {type: 'image/png'});
510510
saveAs(data, 'screenshot.png');
511511
})
512-
}
512+
};
513513

514514
WebDriverJsController.prototype.logs = function(type) {
515515
if (type === 'Logs')
@@ -525,7 +525,7 @@ WebDriverJsController.prototype.logs = function(type) {
525525
data = new Blob([lines.join('\n')], {type: 'text/plain'});
526526
saveAs(data, 'webdriver.log');
527527
})
528-
}
528+
};
529529

530530
WebDriverJsController.prototype.findElement = function() {
531531
var criteria = document.getElementsByName('findElementCriteria')[0].value;
@@ -538,19 +538,19 @@ WebDriverJsController.prototype.findElement = function() {
538538
this.element = this.driver().findElement(webdriver.By.tagName(key));
539539
else if (criteria === 'xpath')
540540
this.element = this.driver().findElement(webdriver.By.xpath(key));
541-
}
541+
};
542542

543543
WebDriverJsController.prototype.sendKeys = function(key) {
544544
if (this.element) {
545545
this.element.sendKeys(key);
546546
} else {
547547
this.driver().actions().sendKeys(key).perform();
548548
}
549-
}
549+
};
550550

551551
WebDriverJsController.prototype.click = function() {
552552
this.element.click();
553-
}
553+
};
554554

555555
WebDriverJsController.prototype.listWindowHandles = function() {
556556
var select = document.getElementById('windowList');
@@ -564,20 +564,20 @@ WebDriverJsController.prototype.listWindowHandles = function() {
564564
document.getElementById('windowList').style.visibility = 'visible';
565565
document.getElementById('chooseWindow').style.visibility = 'visible';
566566
});
567-
}
567+
};
568568

569569
WebDriverJsController.prototype.chooseWindow = function() {
570570
var handle = document.getElementById('windowList').value;
571571
this.driver().switchTo().window(handle);
572-
}
572+
};
573573

574574
WebDriverJsController.prototype.setWindowSize = function() {
575575
var width = document.getElementsByName('windowSizeWidth')[0].value;
576576
var height = document.getElementsByName('windowSizeHeight')[0].value;
577577
width = parseInt(width);
578578
height = parseInt(height);
579579
this.driver().manage().window().setSize(width, height);
580-
}
580+
};
581581

582582
WebDriverJsController.prototype.quit = function() {
583583
if (!this._driver)
@@ -587,7 +587,7 @@ WebDriverJsController.prototype.quit = function() {
587587
this.visualizer.quit();
588588
this.webDriverUrlPort = null;
589589
this.webPage = null;
590-
}
590+
};
591591

592592
function init() {
593593
if (localStorage && localStorage.webDriverUrlPort) {

0 commit comments

Comments
 (0)