From: <asa...@us...> - 2015-05-08 10:42:05
|
Revision: 10439 http://sourceforge.net/p/htmlunit/code/10439 Author: asashour Date: 2015-05-08 10:42:03 +0000 (Fri, 08 May 2015) Log Message: ----------- window.performance Modified Paths: -------------- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Window.java Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Window.java =================================================================== --- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Window.java 2015-05-08 10:22:28 UTC (rev 10438) +++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Window.java 2015-05-08 10:42:03 UTC (rev 10439) @@ -136,6 +136,7 @@ import com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocument; import com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement; import com.gargoylesoftware.htmlunit.javascript.host.html.HTMLUnknownElement; +import com.gargoylesoftware.htmlunit.javascript.host.performance.Performance; import com.gargoylesoftware.htmlunit.javascript.host.xml.XMLDocument; import com.gargoylesoftware.htmlunit.xml.XmlPage; @@ -2264,4 +2265,16 @@ } } } + + /** + * Returns the {@code performance} property. + * @return the {@code performance} property + */ + @JsxGetter({ @WebBrowser(CHROME), @WebBrowser(FF), @WebBrowser(value = IE, minVersion = 11) }) + public Performance getPerformance() { + final Performance performance = new Performance(); + performance.setParentScope(getParentScope()); + performance.setPrototype(getPrototype(performance.getClass())); + return performance; + } } |