mirror of
https://github.com/servo/servo.git
synced 2025-08-13 17:35:36 +01:00
Implement DataTransfer
and related interfaces (#34205)
* add datatransfer interfaces Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com> * implement DataTransfer interface implemented Constructor, setter and getter for drop_effect and effect_allowed, Items and SetDragImage Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com> * implement DataTransferItem interface Implemented Kind, Type, GetAsString, GetAsFile. Marked DataTransfer as weakReferenceable to access its field inside DataTransferItemList and DataTransferItem. Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com> * implement DataTransferItemList interface implemented Lenght, Getter, Add, Remove, Clear Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com> * added DataTransfer's old interface Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com> * DataTransfer: implemented GetData, SetData, SetData Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com> * set Weakref to DataTransfer in DataTransferItemList and DataTransferItem Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com> * DataTransfer: implemented Types and Files Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com> * cleanup get_data, set_data, clear_data Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com> * fix clippy warning Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com> * add drag data store Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com> * fix DataTransfer's Types() behaviour Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com> * DataTransferItem: use the underlying drag data store Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com> * fix DataTransferItemList's getter and remove Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com> * fix clippy warnings Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com> * update test expectations Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com> --------- Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
This commit is contained in:
parent
810a91ecac
commit
c9e3d3e25e
19 changed files with 873 additions and 146 deletions
108
tests/wpt/meta/html/dom/idlharness.https.html.ini
vendored
108
tests/wpt/meta/html/dom/idlharness.https.html.ini
vendored
|
@ -5042,114 +5042,6 @@
|
|||
[CloseWatcher interface: attribute onclose]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransfer interface: existence and properties of interface object]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransfer interface object length]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransfer interface object name]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransfer interface: existence and properties of interface prototype object]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransfer interface: existence and properties of interface prototype object's "constructor" property]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransfer interface: existence and properties of interface prototype object's @@unscopables property]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransfer interface: attribute dropEffect]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransfer interface: attribute effectAllowed]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransfer interface: attribute items]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransfer interface: operation setDragImage(Element, long, long)]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransfer interface: attribute types]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransfer interface: operation getData(DOMString)]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransfer interface: operation setData(DOMString, DOMString)]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransfer interface: operation clearData(optional DOMString)]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransfer interface: attribute files]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransferItemList interface: existence and properties of interface object]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransferItemList interface object length]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransferItemList interface object name]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransferItemList interface: existence and properties of interface prototype object]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransferItemList interface: existence and properties of interface prototype object's "constructor" property]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransferItemList interface: existence and properties of interface prototype object's @@unscopables property]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransferItemList interface: attribute length]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransferItemList interface: operation add(DOMString, DOMString)]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransferItemList interface: operation add(File)]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransferItemList interface: operation remove(unsigned long)]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransferItemList interface: operation clear()]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransferItem interface: existence and properties of interface object]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransferItem interface object length]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransferItem interface object name]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransferItem interface: existence and properties of interface prototype object]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransferItem interface: existence and properties of interface prototype object's "constructor" property]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransferItem interface: existence and properties of interface prototype object's @@unscopables property]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransferItem interface: attribute kind]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransferItem interface: attribute type]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransferItem interface: operation getAsString(FunctionStringCallback?)]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransferItem interface: operation getAsFile()]
|
||||
expected: FAIL
|
||||
|
||||
[DragEvent interface: existence and properties of interface object]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue