Bug 1500160 [wpt PR 13600] - Add tests for simple dialog newline normalization, a=testonly

Automatic update from web-platform-testsAdd tests for simple dialog newline normalization

Follows https://github.com/whatwg/html/pull/4105.
--

wpt-commits: c73a85e666558413c672e183cf388d9724fce578
wpt-pr: 13600
This commit is contained in:
Domenic Denicola 2018-11-30 16:52:58 +00:00 коммит произвёл James Graham
Родитель 35cf53cb11
Коммит 8e7bd0fd91
1 изменённых файлов: 21 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,21 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Newline normalization in simple dialogs</title>
<link rel="help" href="https://html.spec.whatwg.org/multipage/#simple-dialogs">
<p>The dialogs should all contain text looking like:</p>
<pre>Line 1.1
Line 1.2
Line 1.3
Line 1.4
Line 2.1</pre>
<script>
"use strict";
for (const func of [alert, confirm, prompt]) {
func('Line 1.1\nLine 1.2\rLine 1.3\r\nLine 1.4\n\rLine 2.1');
}
</script>