<!DOCTYPE html>
<!--
Copyright (c) 2014 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<link rel="import" href="/tracing/base/raf.html">
<script>
'use strict';

tr.b.unittest.testSuite(function() {
  if (tr.isHeadless) return;

  test('idleCallbackWorks', function() {
    return new Promise(function(resolve, reject) {
      tr.b.requestIdleCallback(resolve);
    });
  });

  test('forceAllPendingTasksToRunForTe