11cb0ef41Sopenharmony_ci<!doctype html>
21cb0ef41Sopenharmony_ci<html>
31cb0ef41Sopenharmony_ci<head>
41cb0ef41Sopenharmony_ci<script src="/resources/testharness.js"></script>
51cb0ef41Sopenharmony_ci<script src="/resources/testharnessreport.js"></script>
61cb0ef41Sopenharmony_ci</head>
71cb0ef41Sopenharmony_ci<body>
81cb0ef41Sopenharmony_ci<script>
91cb0ef41Sopenharmony_ciasync_test(function(t) {
101cb0ef41Sopenharmony_ci  performance.mark('windowMark');
111cb0ef41Sopenharmony_ci  const worker = new Worker("resources/worker-invalid-entries.js");
121cb0ef41Sopenharmony_ci  worker.onmessage = function(event) {
131cb0ef41Sopenharmony_ci    assert_equals(event.data['invalid'], 0, 'The worker must have 0 invalid entries.');
141cb0ef41Sopenharmony_ci    assert_equals(event.data['mark'], 1, 'The worker must have 1 mark entry.');
151cb0ef41Sopenharmony_ci    assert_equals(event.data['measure'], 0, 'The worker must have 0 measure entries.');
161cb0ef41Sopenharmony_ci    assert_equals(performance.getEntriesByType('invalid').length, 0,
171cb0ef41Sopenharmony_ci      'The window must have 0 invalid entries.');
181cb0ef41Sopenharmony_ci    assert_equals(performance.getEntriesByType('mark').length, 1,
191cb0ef41Sopenharmony_ci      'The window must have 1 mark entry.');
201cb0ef41Sopenharmony_ci    assert_equals(performance.getEntriesByType('measure').length, 0,
211cb0ef41Sopenharmony_ci      'The window must have 0 measure entries.')
221cb0ef41Sopenharmony_ci    t.done();
231cb0ef41Sopenharmony_ci  }
241cb0ef41Sopenharmony_ci}, 'Get invalid entries from worker and window.');
251cb0ef41Sopenharmony_ci</script>
261cb0ef41Sopenharmony_ci</body>
271cb0ef41Sopenharmony_ci</html>
28