1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 var layoutTestController = layoutTestController || {};
6 var testRunner = testRunner || {};
9 native function NotifyDone();
10 native function SetDumpAsText();
11 native function SetDumpChildFramesAsText();
12 native function SetPrinting();
13 native function SetShouldStayOnPageAfterHandlingBeforeUnload();
14 native function SetWaitUntilDone();
16 layoutTestController = new function() {
17 this.notifyDone = NotifyDone;
18 this.dumpAsText = SetDumpAsText;
19 this.dumpChildFramesAsText = SetDumpChildFramesAsText;
20 this.setPrinting = SetPrinting;
21 this.setShouldStayOnPageAfterHandlingBeforeUnload =
22 SetShouldStayOnPageAfterHandlingBeforeUnload;
23 this.waitUntilDone = SetWaitUntilDone;
26 testRunner = layoutTestController;