types(selenium): fix typings error Level class in logging namespace

The 'name' and 'value' properties should not be defined as function, they
are inplemented using es6 get functions

get value() {
  return this.value_;
}

see ba56ad1ae0/javascript/node/selenium-webdriver/lib/logging.js (L95)
This commit is contained in:
krauseStefan
2016-11-02 18:02:45 +01:00
parent 4c4aeebb1e
commit 832d3c938a
2 changed files with 4 additions and 4 deletions

View File

@@ -1777,10 +1777,10 @@ declare namespace webdriver {
toString(): string;
/** This logger's name. */
name(): string;
name: string;
/** The numeric log level. */
value(): number;
value: number;
/**
* Indicates no log messages should be recorded.

View File

@@ -849,8 +849,8 @@ function TestLogging() {
level = webdriver.logging.Level.SEVERE;
level = webdriver.logging.Level.WARNING;
var name: string = level.name();
var value: number = level.value();
var name: string = level.name;
var value: number = level.value;
var type: string;
type = webdriver.logging.Type.BROWSER;