1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:07:43 +00:00
serenity/Tests/LibWeb/Text/input
Timothy Flynn 7edfeb7056 LibWeb: Support committing changes to <input> elements
We currently fire the change event on <input> elements when they lose
focus. The spec allows for us to also fire the event when changes are
"committed", so long as such an action makes sense for the input type.

This patch detects when the return key is entered in an <input> element
and uses that as the commit action for text-related types. If no change
has occurred since the last commit, no change event is fired.
2023-12-02 10:34:22 +01:00
..
canvas Tests/LibWeb: Test canvas fillStyle parsing of rgb strings 2023-11-24 08:42:18 +01:00
css LibWeb: Bail parsing transform-origin if the parsed value is null 2023-10-29 11:22:53 +01:00
Encoding LibWeb: Add TextEncoder encodeInto 2023-10-29 21:44:53 +01:00
FileAPI Tests/LibWeb: Verify instantiation behavior of Blob w/empty constructor 2023-11-29 21:51:35 +01:00
geometry LibWeb: Add DOMMatrix fromFloat32Array and fromFloat64Array 2023-10-03 16:15:14 -06:00
hit_testing LibWeb: Treat grid item as it creates stacking context during painting 2023-08-22 11:33:24 +02:00
HTML LibWeb: Remove shadow roots from elements that are removed from the DOM 2023-11-30 08:49:15 +00:00
IntersectionObserver LibWeb: Don't assume IO.unobserve() called on observed element 2023-11-23 09:37:12 +01:00
MutationObserver LibWeb: Fix null pointer dereference in DOM::Node::remove() 2023-11-20 20:50:53 +01:00
navigation LibWeb: Update session history when History entry is pushed/replaced 2023-09-23 17:59:10 -06:00
PerformanceObserver LibWeb: Implement PerformanceObserver 2023-08-27 23:27:44 +02:00
Streams LibWeb: Use ArrayBufferView for ReadableStreamBYOBReader 2023-11-24 08:43:35 +01:00
SVG LibWeb: Add support for inline SVG element scripts 2023-11-05 11:16:16 +00:00
URL AK: Properly implement steps for shortening a URLs path 2023-10-26 11:11:41 +02:00
Worker LibWeb+WebWorker: Implement a first cut of post_message for Workers 2023-11-24 08:41:38 +01:00
XHR Tests/LibWeb: Move existing XHR Text tests in under the XHR folder 2023-11-29 21:51:35 +01:00
XML LibWeb/XML: Avoid placing all elements missing an ns in the HTML ns 2023-10-07 20:02:10 +02:00
anchor-element-with-javascript-url-href.html LibWeb: Remove exit for javascript urls in anchor activation_behavior() 2023-11-25 16:33:54 +01:00
append-child-must-update-layout-tree.html LibWeb: Invalidate the layout tree on DOM node insertion 2023-06-06 09:06:27 +02:00
Attr-cloneNode.html LibWeb/Tests: Port two DOM cloneNode() test cases to text tests 2023-08-21 13:51:12 +02:00
background-position-xy.html LibWeb: Create EdgeStyleValue for BackgroundPositionXY with no offset 2023-07-17 14:53:52 +01:00
basic.html Tests/LibWeb: Use the include.js helper in "basic.html" 2023-05-28 22:03:57 +02:00
body-background-color-red.css LibWeb: Forward media attribute from link element to loaded style sheet 2023-06-11 06:05:03 +02:00
clipboard.html LibWeb: Begin implementing the Clipboard API 2023-11-11 08:54:37 +01:00
failed-img-should-not-delay-load-event-forever.html LibWeb: Fire the fail callback on SharedImageRequest when they fail 2023-08-28 10:19:46 +02:00
get-bounding-client-rect.html LibWeb: Use border box rect in getBoundingClientRect() 2023-11-17 20:46:56 +01:00
html-form-controls-collection.html LibWeb: Return a HTMLFormControlsCollection from HTMLFormElement element 2023-08-20 11:04:03 +02:00
html-parser-text-in-table-hoisting.html LibWeb: Make HTML parser flush all pending tokens in "in table text" 2023-07-03 11:50:58 +02:00
idl-handling-of-null-attribute.html LibWeb: Support [Reflect] on IDL String attributes that may return null 2023-09-05 20:36:09 -04:00
include.js Tests: Add stub for the internals object when not running in test mode 2023-11-24 08:41:38 +01:00
input-commit.html LibWeb: Support committing changes to <input> elements 2023-12-02 10:34:22 +01:00
input-element-file-value.html LibWeb: Fix empty value attribute for 'file' input returning fakepath 2023-08-26 13:51:18 +02:00
internals.html LibWeb: Add a simple internals objects only available during testing 2023-08-06 15:26:34 +02:00
link-element-media-attribute.html LibWeb+WebContent+headless-browser: Support async text tests 2023-09-15 08:52:25 +02:00
link-element-onload-attribute.html LibWeb+WebContent+headless-browser: Support async text tests 2023-09-15 08:52:25 +02:00
link-element-rel-preload-load-event.html LibWeb+WebContent+headless-browser: Support async text tests 2023-09-15 08:52:25 +02:00
link-element-search.html LibWeb+WebContent+headless-browser: Support async text tests 2023-09-15 08:52:25 +02:00
module-script-in-head.html LibWeb/Tests: Add test for a <script type=module> inside <head> 2023-10-31 18:09:14 +01:00
ProcessingInstruction-cloneNode.html LibWeb/Tests: Port two DOM cloneNode() test cases to text tests 2023-08-21 13:51:12 +02:00
radio-node-list.html LibWeb: Implement value attribute of RadioNodeList 2023-08-26 13:51:18 +02:00
sameobject-behavior-for-htmlcollection-properties.html LibWeb/Tests: Port HTMLCollection [[SameObject]] test to a text test 2023-08-21 13:51:12 +02:00
scripted-dom-insertion-during-html-parse.html LibWeb+WebContent+headless-browser: Support async text tests 2023-09-15 08:52:25 +02:00
scroll-left-and-top-on-colgroup.html LibWeb: Return a scroll offset of 0 for colgroup elements 2023-11-23 13:06:48 +01:00
set-timeout-with-no-active-script.html LibWeb: Fix setTimeout() when there's no active script 2023-09-15 08:53:21 +02:00
setInterval.html Tests/LibWeb: Add basic tests for setTimeout and setInterval 2023-09-26 19:42:59 +02:00
setTimeout.html Tests/LibWeb: Add basic tests for setTimeout and setInterval 2023-09-26 19:42:59 +02:00
setting-display-none-should-nuke-subtree.html LibWeb: Detach stale layout nodes from DOM during layout tree build 2023-08-01 09:19:41 +02:00
title.html LibWeb: Implement the document title attribute closer to the spec 2023-06-08 07:21:08 +02:00
url-search-params-iterator-iterator.html LibWeb: Don't override prototype on generated iterator prototypes 2023-06-08 10:05:56 +02:00
valid.css LibWeb: Fire "load" and "error" events for rel=preload link loads 2023-06-06 09:06:27 +02:00
window-proxy-numeric-own-property.html LibWeb: Implement basic support for window[number] 2023-07-25 15:45:44 +02:00
window-proxy-property-inline-cache.html LibWeb: Don't cache property accesses on WindowProxy 2023-07-11 00:14:50 +02:00