diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2021-01-06 02:56:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-06 02:56:40 +0100 |
commit | 60c9c857584bf5180dd0f7b937683dd9691aef84 (patch) | |
tree | 86ad8ab84bdf962752c0f7a4361a3f8c556691c9 /cli/tests | |
parent | bb884182218b5c12c7354c93860d69f65f59752a (diff) |
fix: align performance API to spec using WPT (#9012)
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/wpt.jsonc | 42 |
1 files changed, 39 insertions, 3 deletions
diff --git a/cli/tests/wpt.jsonc b/cli/tests/wpt.jsonc index 479b6a747..3099d3b48 100644 --- a/cli/tests/wpt.jsonc +++ b/cli/tests/wpt.jsonc @@ -135,13 +135,49 @@ "Encoding argument supported for decode: UTF-16LE", "Encoding argument supported for decode: x-user-defined" ] - }, + } // TODO(lucacasonato): enable when we support utf-16 // "textencoder-utf16-surrogates", // TODO(lucacasonato): uses XMLHttpRequest unnecessarily. should be fixed upstream before enabling // "unsupported-encodings", ], - "dom": [ - "abort/event" + "dom": ["abort/event"], + "hr-time": ["monotonic-clock"], + "html": [ + "webappapis/microtask-queuing/queue-microtask-exceptions.any", + "webappapis/microtask-queuing/queue-microtask.any" + ], + "user-timing": [ + "clear_all_marks", + "clear_all_measures", + "clear_non_existent_mark", + "clear_non_existent_measure", + "clear_one_mark", + "clear_one_measure", + "entry_type", + "mark-entry-constructor", + "mark-errors", + "mark-measure-return-objects", + "mark.any", + { + "name": "measure_syntax_err", + "expectFail": [ + // TODO(lucacasonato): re-enable when #9009 is fixed. + "self.performance.measure(\"measure\", \"mark\"), where \"mark\" is a non-existent mark, throws a SyntaxError exception.", + "self.performance.measure(\"measure\", \"mark\", \"existing_mark\"), where \"mark\" is a non-existent mark, throws a SyntaxError exception.", + "self.performance.measure(\"measure\", \"existing_mark\", \"mark\"), where \"mark\" is a non-existent mark, throws a SyntaxError exception.", + "self.performance.measure(\"measure\", \"mark\", \"mark\"), where \"mark\" is a non-existent mark, throws a SyntaxError exception." + ] + }, + "measure-l3", + { + "name": "structured-serialize-detail", + "expectFail": [ + // TODO(lucacasonato): re-enable when we use real structured clone. + "Mark: Throw an exception when the detail property cannot be structured-serialized.", + "Measure: Throw an exception when the detail property cannot be structured-serialized." + ] + }, + "user_timing_exists" ] } |