https://github.com/web-platform-tests/wpt
Revision 4091ab0f7cbcb304cdd5b1d1c30264b052359b38 authored by Florian Rivoal on 29 March 2018, 16:46:52 UTC, committed by L. David Baron on 29 March 2018, 16:46:52 UTC
Corresponding to the spec changes decided in https://github.com/w3c/csswg-drafts/issues/2000
1 parent afcd47b
Raw File
Tip revision: 4091ab0f7cbcb304cdd5b1d1c30264b052359b38 authored by Florian Rivoal on 29 March 2018, 16:46:52 UTC
[css-overflow-3] test the flow-relative overflow properties (#10233)
Tip revision: 4091ab0
clear_all_marks.any.js
test(function() {
    self.performance.mark("mark1");
    self.performance.mark("mark2");

    // test that two marks have been created
    var entries = self.performance.getEntriesByType("mark");
    assert_equals(entries.length, 2, "Two marks have been created for this test.");

    // clear all marks
    self.performance.clearMarks();

    // test that all marks were cleared
    entries = self.performance.getEntriesByType("mark");

    assert_equals(entries.length, 0, "All marks have been cleared.");

}, "Clearing all marks remove all of them.");
back to top