From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- .../web-platform/tests/innerText/setter-tests.js | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 testing/web-platform/tests/innerText/setter-tests.js (limited to 'testing/web-platform/tests/innerText/setter-tests.js') diff --git a/testing/web-platform/tests/innerText/setter-tests.js b/testing/web-platform/tests/innerText/setter-tests.js new file mode 100644 index 000000000..1c973ae04 --- /dev/null +++ b/testing/web-platform/tests/innerText/setter-tests.js @@ -0,0 +1,27 @@ +testText("
", "abc", "abc", "Simplest possible test"); +testHTML("
", "abc\ndef", "abc
def", "Newlines convert to
in non-white-space:pre elements"); +testHTML("
", "abc\ndef", "abc
def", "Newlines convert to
in
 element");
+testHTML("
", "abc\ndef", "abc
def", "Newlines convert to
in white-space:pre element"); +testHTML("
", "abc\rdef", "abc
def", "CRs convert to
in non-white-space:pre elements"); +testHTML("
", "abc\rdef", "abc
def", "CRs convert to
in
 element");
+testHTML("
", "abc\r\ndef", "abc
def", "Newline/CR pair converts to
in non-white-space:pre element"); +testHTML("
", "abc\n\ndef", "abc

def", "Newline/newline pair converts to two
s in non-white-space:pre element"); +testHTML("
", "abc\r\rdef", "abc

def", "CR/CR pair converts to two
s in non-white-space:pre element"); +testHTML("
", "abc\rdef", "abc
def", "CRs convert to
in white-space:pre element"); +testText("
", "abc", "abc>def", "abc>def", "> preserved"); +testText("
", "abc&", "abc&", "& preserved"); +testText("
", "abc\"def", "abc\"def", "\" preserved"); +testText("
", "abc\'def", "abc\'def", "\' preserved"); +testHTML("", "abc", "", "innerText not supported on SVG elements"); +testHTML("", "abc", "", "innerText not supported on MathML elements"); +testText("
", "abc\0def", "abc\0def", "Null characters preserved"); +testText("
", "abc\tdef", "abc\tdef", "Tabs preserved"); +testText("
", " abc", " abc", "Leading whitespace preserved"); +testText("
", "abc ", "abc ", "Trailing whitespace preserved"); +testText("
", "abc def", "abc def", "Whitespace not compressed"); +testHTML("
abc\n\n", "abc", "abc", "Existing text deleted"); +testHTML("

", "abc", "abc", "Existing
deleted"); +testHTML("
", "", "", "Assigning the empty string"); +testHTML("
", null, "", "Assigning null"); +testHTML("
", undefined, "undefined", "Assigning undefined"); -- cgit v1.2.3