<!doctype html>
<title>testharness.js - task scheduling</title>
<script src="../../../testharness.js"></script>
<script src="../../../testharnessreport.js"></script>
<script>
var sameTask = null;
var sameMicrotask = null;
var expectedError = new Error('This error is expected');

promise_test(function() {
  return Promise.resolve()
    .then(function() {
        sameMirotask = true;
        Promise.resolve().then(() => sameMicrotask = false);
      });
}, 'promise test without cleanup #1');

promise_test(fun