summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/interfaces/longtasks.idl
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/interfaces/longtasks.idl')
-rw-r--r--testing/web-platform/tests/interfaces/longtasks.idl79
1 files changed, 79 insertions, 0 deletions
diff --git a/testing/web-platform/tests/interfaces/longtasks.idl b/testing/web-platform/tests/interfaces/longtasks.idl
new file mode 100644
index 0000000000..13d4940c1c
--- /dev/null
+++ b/testing/web-platform/tests/interfaces/longtasks.idl
@@ -0,0 +1,79 @@
+// GENERATED CONTENT - DO NOT EDIT
+// Content was automatically extracted by Reffy into webref
+// (https://github.com/w3c/webref)
+// Source: Long Tasks API (https://w3c.github.io/longtasks/)
+
+[Exposed=Window]
+interface PerformanceLongTaskTiming : PerformanceEntry {
+ /* Overloading PerformanceEntry */
+ readonly attribute DOMHighResTimeStamp startTime;
+ readonly attribute DOMHighResTimeStamp duration;
+ readonly attribute DOMString name;
+ readonly attribute DOMString entryType;
+
+ readonly attribute FrozenArray<TaskAttributionTiming> attribution;
+ [Default] object toJSON();
+};
+
+[Exposed=Window]
+interface TaskAttributionTiming : PerformanceEntry {
+ /* Overloading PerformanceEntry */
+ readonly attribute DOMHighResTimeStamp startTime;
+ readonly attribute DOMHighResTimeStamp duration;
+ readonly attribute DOMString name;
+ readonly attribute DOMString entryType;
+
+ readonly attribute DOMString containerType;
+ readonly attribute DOMString containerSrc;
+ readonly attribute DOMString containerId;
+ readonly attribute DOMString containerName;
+ [Default] object toJSON();
+};
+
+[Exposed=Window]
+interface PerformanceLongAnimationFrameTiming : PerformanceEntry {
+ /* Overloading PerformanceEntry */
+ readonly attribute DOMHighResTimeStamp startTime;
+ readonly attribute DOMHighResTimeStamp duration;
+ readonly attribute DOMString name;
+ readonly attribute DOMString entryType;
+
+ readonly attribute DOMHighResTimeStamp renderStart;
+ readonly attribute DOMHighResTimeStamp styleAndLayoutStart;
+ readonly attribute DOMHighResTimeStamp blockingDuration;
+ readonly attribute DOMHighResTimeStamp firstUIEventTimestamp;
+ [SameObject] readonly attribute FrozenArray<PerformanceScriptTiming> scripts;
+ [Default] object toJSON();
+};
+
+enum ScriptInvokerType {
+ "classic-script",
+ "module-script",
+ "event-listener",
+ "user-callback",
+ "resolve-promise",
+ "reject-promise"
+};
+
+enum ScriptWindowAttribution {
+ "self", "descendant", "ancestor", "same-page", "other"
+};
+
+[Exposed=Window]
+interface PerformanceScriptTiming : PerformanceEntry {
+ /* Overloading PerformanceEntry */
+ readonly attribute DOMHighResTimeStamp startTime;
+ readonly attribute DOMHighResTimeStamp duration;
+ readonly attribute DOMString name;
+ readonly attribute DOMString entryType;
+
+ readonly attribute ScriptInvokerType invokerType;
+ readonly attribute DOMString invoker;
+ readonly attribute DOMHighResTimeStamp executionStart;
+ readonly attribute DOMString sourceLocation;
+ readonly attribute DOMHighResTimeStamp pauseDuration;
+ readonly attribute DOMHighResTimeStamp forcedStyleAndLayoutDuration;
+ readonly attribute Window? window;
+ readonly attribute ScriptWindowAttribution windowAttribution;
+ [Default] object toJSON();
+};