LibWeb: Implement the DataTransferItem kind and type attributes

This commit is contained in:
Timothy Flynn 2024-08-21 10:24:45 -04:00 committed by Andreas Kling
commit 001d8384e5
Notes: github-actions[bot] 2024-08-22 12:22:21 +00:00
7 changed files with 65 additions and 6 deletions

View file

@ -9,7 +9,7 @@
println(`length=${dataTransferItemList.length}, types=${dataTransfer.types}`);
let stringItem = dataTransferItemList.add("well hello friends", "custom-type");
println(`stringItem: ${stringItem}`);
println(`stringItem: kind=${stringItem.kind}, type=${stringItem.type}`);
println(`length=${dataTransferItemList.length}, types=${dataTransfer.types}`);
if (dataTransferItemList[0] !== stringItem) {
@ -26,7 +26,7 @@
});
let fileItem = dataTransferItemList.add(file);
println(`fileItem: ${fileItem}`);
println(`fileItem: kind=${fileItem.kind}, type=${fileItem.type}`);
println(`length=${dataTransferItemList.length}, types=${dataTransfer.types}`);
if (dataTransferItemList[1] !== fileItem) {