зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
35cf53cb11
Коммит
8e7bd0fd91
|
@ -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>
|
Загрузка…
Ссылка в новой задаче