Title: [224400] trunk/LayoutTests
- Revision
- 224400
- Author
- ms2...@igalia.com
- Date
- 2017-11-03 09:27:37 -0700 (Fri, 03 Nov 2017)
Log Message
LayoutTests/imported/w3c:
Update Event-timestamp-high-resolution.html.
https://bugs.webkit.org/show_bug.cgi?id=179242
Reviewed by Darin Adler.
Synchronise with upstream to make the test more robust.
* web-platform-tests/dom/events/Event-timestamp-high-resolution.html:
LayoutTests:
[WPE] Update Event-timestamp-high-resolution.html expectations.
https://bugs.webkit.org/show_bug.cgi?id=179242
Reviewed by Darin Adler.
The test now deals more gracefully with the fact that GamepadEvent is
not defined.
* platform/wpe/imported/w3c/web-platform-tests/dom/events/Event-timestamp-high-resolution-expected.txt:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (224399 => 224400)
--- trunk/LayoutTests/ChangeLog 2017-11-03 16:03:07 UTC (rev 224399)
+++ trunk/LayoutTests/ChangeLog 2017-11-03 16:27:37 UTC (rev 224400)
@@ -1,3 +1,15 @@
+2017-11-03 Ms2ger <ms2...@igalia.com>
+
+ [WPE] Update Event-timestamp-high-resolution.html expectations.
+ https://bugs.webkit.org/show_bug.cgi?id=179242
+
+ Reviewed by Darin Adler.
+
+ The test now deals more gracefully with the fact that GamepadEvent is
+ not defined.
+
+ * platform/wpe/imported/w3c/web-platform-tests/dom/events/Event-timestamp-high-resolution-expected.txt:
+
2017-11-03 Daniel Bates <daba...@apple.com>
Invalidate node list when associated form control element is removed
Modified: trunk/LayoutTests/imported/w3c/ChangeLog (224399 => 224400)
--- trunk/LayoutTests/imported/w3c/ChangeLog 2017-11-03 16:03:07 UTC (rev 224399)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2017-11-03 16:27:37 UTC (rev 224400)
@@ -1,3 +1,14 @@
+2017-11-03 Ms2ger <ms2...@igalia.com>
+
+ Update Event-timestamp-high-resolution.html.
+ https://bugs.webkit.org/show_bug.cgi?id=179242
+
+ Reviewed by Darin Adler.
+
+ Synchronise with upstream to make the test more robust.
+
+ * web-platform-tests/dom/events/Event-timestamp-high-resolution.html:
+
2017-11-03 Antti Koivisto <an...@apple.com>
Crash in WebCore::RenderStyle::overflowX with display:contents
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/Event-timestamp-high-resolution.html (224399 => 224400)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/Event-timestamp-high-resolution.html 2017-11-03 16:03:07 UTC (rev 224399)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/Event-timestamp-high-resolution.html 2017-11-03 16:27:37 UTC (rev 224400)
@@ -4,13 +4,13 @@
<script src=""
<script type="text/_javascript_">
'use strict';
-for (let eventType of [MouseEvent, KeyboardEvent, WheelEvent, GamepadEvent, FocusEvent]) {
+for (let eventType of ["MouseEvent", "KeyboardEvent", "WheelEvent", "GamepadEvent", "FocusEvent"]) {
test(function() {
let before = performance.now();
- let e = new eventType('test');
+ let e = new window[eventType]('test');
let after = performance.now();
assert_greater_than_equal(e.timeStamp, before, "Event timestamp should be greater than performance.now() timestamp taken before its creation");
assert_less_than_equal(e.timeStamp, after, "Event timestamp should be less than performance.now() timestamp taken after its creation");
- }, `Constructed ${eventType.prototype.constructor.name} timestamp should be high resolution and have the same time origin as performance.now()`);
+ }, `Constructed ${eventType} timestamp should be high resolution and have the same time origin as performance.now()`);
}
-</script>
\ No newline at end of file
+</script>
Modified: trunk/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/dom/events/Event-timestamp-high-resolution-expected.txt (224399 => 224400)
--- trunk/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/dom/events/Event-timestamp-high-resolution-expected.txt 2017-11-03 16:03:07 UTC (rev 224399)
+++ trunk/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/dom/events/Event-timestamp-high-resolution-expected.txt 2017-11-03 16:27:37 UTC (rev 224400)
@@ -1,4 +1,7 @@
-CONSOLE MESSAGE: line 7: ReferenceError: Can't find variable: GamepadEvent
-FAIL Untitled ReferenceError: Can't find variable: GamepadEvent
+PASS Constructed MouseEvent timestamp should be high resolution and have the same time origin as performance.now()
+PASS Constructed KeyboardEvent timestamp should be high resolution and have the same time origin as performance.now()
+PASS Constructed WheelEvent timestamp should be high resolution and have the same time origin as performance.now()
+FAIL Constructed GamepadEvent timestamp should be high resolution and have the same time origin as performance.now() undefined is not a constructor (evaluating 'new window[eventType]('test')')
+PASS Constructed FocusEvent timestamp should be high resolution and have the same time origin as performance.now()
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes