added more working DOM test cases for JS

This commit is contained in:
James Strachan
2012-07-03 19:54:32 +01:00
parent 81c764daf8
commit ffffe84fcb
7 changed files with 87 additions and 26 deletions
+4 -3
View File
@@ -11,6 +11,7 @@ native public val Node.outerHTML: String
get() = js.noImpl
/** Converts the node to an XML String */
public fun Node.toXmlString(xmlDeclaration: Boolean = false): String {
return this.outerHTML
}
public fun Node.toXmlString(): String = this.outerHTML
/** Converts the node to an XML String */
public fun Node.toXmlString(xmlDeclaration: Boolean): String = this.outerHTML
@@ -24,8 +24,9 @@ public class StdLibTestToJSTest extends StdLibTestSupport {
public void testGenerateTestCase() throws Exception {
generateJavaScriptFiles(EcmaVersion.all(),
"libraries/stdlib/test",
//"dom/DomTest.kt",
"dom/DomTest.kt",
"js/MapTest.kt",
"js/JsDomTest.kt",
"ListTest.kt",
"StringTest.kt");
}
@@ -92,6 +92,7 @@ public abstract class Config {
*/
@NotNull
public static final List<String> LIB_FILE_NAMES_DEPENDENT_ON_STDLIB = Arrays.asList(
"/stdlib/dom.kt",
"/stdlib/jutil.kt",
"/stdlib/JUMaps.kt",
"/stdlib/test.kt",