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

Unified Diff: third_party/WebKit/LayoutTests/editing/deleting/delete-all-text-in-text-field-assertion.html

Issue 2276563005: Convert editing/deleting/delete-all-text-in-text-field-assertion.html to use w3c test harness (Closed)
Patch Set: 2016-08-25T13:56:30 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/deleting/delete-all-text-in-text-field-assertion-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/editing/deleting/delete-all-text-in-text-field-assertion.html
diff --git a/third_party/WebKit/LayoutTests/editing/deleting/delete-all-text-in-text-field-assertion.html b/third_party/WebKit/LayoutTests/editing/deleting/delete-all-text-in-text-field-assertion.html
index 941ef990d6bcde4b962cdb92cbaa466b07112c91..bebad45795ad0f02c54bc601fa3d6bb7d8256930 100644
--- a/third_party/WebKit/LayoutTests/editing/deleting/delete-all-text-in-text-field-assertion.html
+++ b/third_party/WebKit/LayoutTests/editing/deleting/delete-all-text-in-text-field-assertion.html
@@ -1,35 +1,14 @@
-<html>
-<head>
-<script>
-if (window.testRunner)
- testRunner.dumpEditingCallbacks();
-</script>
-
-<script>
-if (window.testRunner) {
- testRunner.waitUntilDone();
- testRunner.dumpAsText();
-}
-</script>
-<script src="../editing.js"></script>
-</head>
-<body>
-<div>Bug 9358: REGRESSION: Assertion failure in HTMLInputElement::setValueFromRenderer (value == constrainValue(value)) when deleting all text</div>
-<div><a href="https://bugs.webkit.org/show_bug.cgi?id=9358">https://bugs.webkit.org/show_bug.cgi?id=9358</a></div>
-<div><br></div>
-<form>
-Assertion fails when all characters are deleted: <input type="text" id="t" value="X">
-</form>
-<script>
-document.getElementById("t").focus();
-document.execCommand("SelectAll");
-document.execCommand("Delete");
-</script>
-<div>SUCCESS if the test didn't crash and you see this message.</div>
-<script>
-if (window.testRunner) {
- testRunner.notifyDone()
-}
+<!doctype html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../assert_selection.js"></script>
+<input id="sample" value="foo bar">
+<script>
+ test(() => {
+ var sample = document.getElementById('sample');
+ sample.focus();
+ document.execCommand('selectAll');
+ document.execCommand('delete');
+ assert_equals(sample.value, '');
+ }, 'document.execCommand works with INPUT');
</script>
-<body>
-</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/deleting/delete-all-text-in-text-field-assertion-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698