Fix testdata after changing API of kotlin.browser and kotlin.dom

This commit is contained in:
Alexey Trilis
2020-06-24 01:39:17 +03:00
parent e6edab1c82
commit 593684ecb6
8 changed files with 93 additions and 17 deletions
@@ -1,7 +1,15 @@
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.document' instead.", replaceWith = kotlin.ReplaceWith(expression = "document", imports = {"kotlinx.browser.document"}))
@kotlin.internal.LowPriorityInOverloadResolution
public external val document: org.w3c.dom.Document { get; }
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.localStorage' instead.", replaceWith = kotlin.ReplaceWith(expression = "localStorage", imports = {"kotlinx.browser.localStorage"}))
@kotlin.internal.LowPriorityInOverloadResolution
public external val localStorage: org.w3c.dom.Storage { get; }
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.sessionStorage' instead.", replaceWith = kotlin.ReplaceWith(expression = "sessionStorage", imports = {"kotlinx.browser.sessionStorage"}))
@kotlin.internal.LowPriorityInOverloadResolution
public external val sessionStorage: org.w3c.dom.Storage { get; }
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.window' instead.", replaceWith = kotlin.ReplaceWith(expression = "window", imports = {"kotlinx.browser.window"}))
@kotlin.internal.LowPriorityInOverloadResolution
public external val window: org.w3c.dom.Window { get; }
+25 -7
View File
@@ -1,17 +1,35 @@
@kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.isElement' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.isElement", imports = {"kotlinx.dom.isElement"}))
public val org.w3c.dom.Node.isElement: kotlin.Boolean { get; }
@kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.isText' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.isText", imports = {"kotlinx.dom.isText"}))
public val org.w3c.dom.Node.isText: kotlin.Boolean { get; }
public fun org.w3c.dom.Element.addClass(vararg cssClasses: kotlin.String): kotlin.Boolean
@kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.addClass' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.addClass(cssClasses)", imports = {"kotlinx.dom.addClass"}))
public inline fun org.w3c.dom.Element.addClass(vararg cssClasses: kotlin.String): kotlin.Boolean
public fun org.w3c.dom.Element.appendElement(name: kotlin.String, init: org.w3c.dom.Element.() -> kotlin.Unit): org.w3c.dom.Element
@kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.appendElement' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.appendElement(name, init)", imports = {"kotlinx.dom.appendElement"}))
public inline fun org.w3c.dom.Element.appendElement(name: kotlin.String, noinline init: org.w3c.dom.Element.() -> kotlin.Unit): org.w3c.dom.Element
public fun org.w3c.dom.Element.appendText(text: kotlin.String): org.w3c.dom.Element
@kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.appendText' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.appendText(text)", imports = {"kotlinx.dom.appendText"}))
public inline fun org.w3c.dom.Element.appendText(text: kotlin.String): org.w3c.dom.Element
public fun org.w3c.dom.Node.clear(): kotlin.Unit
@kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.clear' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.clear()", imports = {"kotlinx.dom.clear"}))
public inline fun org.w3c.dom.Node.clear(): kotlin.Unit
public fun org.w3c.dom.Document.createElement(name: kotlin.String, init: org.w3c.dom.Element.() -> kotlin.Unit): org.w3c.dom.Element
@kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.createElement' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.createElement(name, init)", imports = {"kotlinx.dom.createElement"}))
public inline fun org.w3c.dom.Document.createElement(name: kotlin.String, noinline init: org.w3c.dom.Element.() -> kotlin.Unit): org.w3c.dom.Element
public fun org.w3c.dom.Element.hasClass(cssClass: kotlin.String): kotlin.Boolean
@kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.hasClass' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.hasClass(cssClass)", imports = {"kotlinx.dom.hasClass"}))
public inline fun org.w3c.dom.Element.hasClass(cssClass: kotlin.String): kotlin.Boolean
public fun org.w3c.dom.Element.removeClass(vararg cssClasses: kotlin.String): kotlin.Boolean
@kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.removeClass' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.removeClass(cssClasses)", imports = {"kotlinx.dom.removeClass"}))
public inline fun org.w3c.dom.Element.removeClass(vararg cssClasses: kotlin.String): kotlin.Boolean
@@ -0,0 +1,7 @@
/*∆*/ public external val document: org.w3c.dom.Document { get; }
/*∆*/
/*∆*/ public external val localStorage: org.w3c.dom.Storage { get; }
/*∆*/
/*∆*/ public external val sessionStorage: org.w3c.dom.Storage { get; }
/*∆*/
/*∆*/ public external val window: org.w3c.dom.Window { get; }
+17
View File
@@ -0,0 +1,17 @@
/*∆*/ public val org.w3c.dom.Node.isElement: kotlin.Boolean { get; }
/*∆*/
/*∆*/ public val org.w3c.dom.Node.isText: kotlin.Boolean { get; }
/*∆*/
/*∆*/ public fun org.w3c.dom.Element.addClass(vararg cssClasses: kotlin.String): kotlin.Boolean
/*∆*/
/*∆*/ public fun org.w3c.dom.Element.appendElement(name: kotlin.String, init: org.w3c.dom.Element.() -> kotlin.Unit): org.w3c.dom.Element
/*∆*/
/*∆*/ public fun org.w3c.dom.Element.appendText(text: kotlin.String): org.w3c.dom.Element
/*∆*/
/*∆*/ public fun org.w3c.dom.Node.clear(): kotlin.Unit
/*∆*/
/*∆*/ public fun org.w3c.dom.Document.createElement(name: kotlin.String, init: org.w3c.dom.Element.() -> kotlin.Unit): org.w3c.dom.Element
/*∆*/
/*∆*/ public fun org.w3c.dom.Element.hasClass(cssClass: kotlin.String): kotlin.Boolean
/*∆*/
/*∆*/ public fun org.w3c.dom.Element.removeClass(vararg cssClasses: kotlin.String): kotlin.Boolean
@@ -1,7 +1,15 @@
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.document' instead.", replaceWith = kotlin.ReplaceWith(expression = "document", imports = {"kotlinx.browser.document"}))
@kotlin.internal.LowPriorityInOverloadResolution
public external val document: org.w3c.dom.Document { get; }
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.localStorage' instead.", replaceWith = kotlin.ReplaceWith(expression = "localStorage", imports = {"kotlinx.browser.localStorage"}))
@kotlin.internal.LowPriorityInOverloadResolution
public external val localStorage: org.w3c.dom.Storage { get; }
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.sessionStorage' instead.", replaceWith = kotlin.ReplaceWith(expression = "sessionStorage", imports = {"kotlinx.browser.sessionStorage"}))
@kotlin.internal.LowPriorityInOverloadResolution
public external val sessionStorage: org.w3c.dom.Storage { get; }
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.window' instead.", replaceWith = kotlin.ReplaceWith(expression = "window", imports = {"kotlinx.browser.window"}))
@kotlin.internal.LowPriorityInOverloadResolution
public external val window: org.w3c.dom.Window { get; }
+25 -7
View File
@@ -1,17 +1,35 @@
@kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.isElement' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.isElement", imports = {"kotlinx.dom.isElement"}))
public val org.w3c.dom.Node.isElement: kotlin.Boolean { get; }
@kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.isText' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.isText", imports = {"kotlinx.dom.isText"}))
public val org.w3c.dom.Node.isText: kotlin.Boolean { get; }
public fun org.w3c.dom.Element.addClass(vararg cssClasses: kotlin.String): kotlin.Boolean
@kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.addClass' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.addClass(cssClasses)", imports = {"kotlinx.dom.addClass"}))
public inline fun org.w3c.dom.Element.addClass(vararg cssClasses: kotlin.String): kotlin.Boolean
public fun org.w3c.dom.Element.appendElement(name: kotlin.String, init: org.w3c.dom.Element.() -> kotlin.Unit): org.w3c.dom.Element
@kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.appendElement' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.appendElement(name, init)", imports = {"kotlinx.dom.appendElement"}))
public inline fun org.w3c.dom.Element.appendElement(name: kotlin.String, noinline init: org.w3c.dom.Element.() -> kotlin.Unit): org.w3c.dom.Element
public fun org.w3c.dom.Element.appendText(text: kotlin.String): org.w3c.dom.Element
@kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.appendText' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.appendText(text)", imports = {"kotlinx.dom.appendText"}))
public inline fun org.w3c.dom.Element.appendText(text: kotlin.String): org.w3c.dom.Element
public fun org.w3c.dom.Node.clear(): kotlin.Unit
@kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.clear' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.clear()", imports = {"kotlinx.dom.clear"}))
public inline fun org.w3c.dom.Node.clear(): kotlin.Unit
public fun org.w3c.dom.Document.createElement(name: kotlin.String, init: org.w3c.dom.Element.() -> kotlin.Unit): org.w3c.dom.Element
@kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.createElement' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.createElement(name, init)", imports = {"kotlinx.dom.createElement"}))
public inline fun org.w3c.dom.Document.createElement(name: kotlin.String, noinline init: org.w3c.dom.Element.() -> kotlin.Unit): org.w3c.dom.Element
public fun org.w3c.dom.Element.hasClass(cssClass: kotlin.String): kotlin.Boolean
@kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.hasClass' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.hasClass(cssClass)", imports = {"kotlinx.dom.hasClass"}))
public inline fun org.w3c.dom.Element.hasClass(cssClass: kotlin.String): kotlin.Boolean
public fun org.w3c.dom.Element.removeClass(vararg cssClasses: kotlin.String): kotlin.Boolean
@kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.removeClass' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.removeClass(cssClasses)", imports = {"kotlinx.dom.removeClass"}))
public inline fun org.w3c.dom.Element.removeClass(vararg cssClasses: kotlin.String): kotlin.Boolean