Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/checkValidity-002.html

Issue 2210743002: Merge layout tests checkValidity-00n.html into one. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build HTML tree in each of tests Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/forms/checkValidity-002.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/checkValidity-002.html b/third_party/WebKit/LayoutTests/fast/forms/checkValidity-002.html
deleted file mode 100644
index bd09bff2a1a22d2fe89760b7bc9923599acf748c..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/forms/checkValidity-002.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<form method="get">
-<input id="input-empty" name="victim" type="text" required/>
-<input id="input-pattern-mismatch" name="victim" type="text" pattern="Lorem ipsum" value="Loremipsum"/>
-<textarea id="textarea" name="victim" required></textarea>
-<select id="select-no-explicit-value" required>
- <option>empty</option>
- <option>another</option>
-</select>
-<select id="select-placeholder" name="victim" required>
- <option value="" selected />
- <option value="X">X</option>
-</select>
-<select id="select-non-placeholder" name="victim" required>
- <option value="X">X</option>
- <option value="" selected />
-</select>
-</form>
-<div id="console"></div>
-<script>
- function checkValidityFor(id) {
- return document.getElementById(id).checkValidity();
- }
-
- description("This test checks if checkValidity() returns correctly a false (meaning error) result on invalid elements, and returns a true result on a blank but valid elements. Blank but non-placeholder label options are valid.");
-
- shouldBeFalse('checkValidityFor("input-empty")');
- shouldBeFalse('checkValidityFor("input-pattern-mismatch")');
- shouldBeFalse('checkValidityFor("textarea")');
- shouldBeTrue('checkValidityFor("select-no-explicit-value")');
- shouldBeFalse('checkValidityFor("select-placeholder")');
- shouldBeTrue('checkValidityFor("select-non-placeholder")');
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698