5
- The contents of this file are subject to the Mozilla Public License
6
- Version 1.1 (the "License"); you may not use this file except in
7
- compliance with the License. You may obtain a copy of the License at
8
- http://www.mozilla.org/MPL/
10
- Software distributed under the License is distributed on an "AS IS" basis,
11
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12
- for the specific language governing rights and limitations under the
15
- The Original Code is The JavaScript Debugger
17
- The Initial Developer of the Original Code is
18
- Netscape Communications Corporation
19
- Portions created by Netscape are
20
- Copyright (C) 1998 Netscape Communications Corporation.
21
- All Rights Reserved.
23
- Alternatively, the contents of this file may be used under the
24
- terms of the GNU Public License (the "GPL"), in which case the
25
- provisions of the GPL are applicable instead of those above.
26
- If you wish to allow use of your version of this file only
27
- under the terms of the GPL and not to allow others to use your
28
- version of this file under the MPL, indicate your decision by
29
- deleting the provisions above and replace them with the notice
30
- and other provisions required by the GPL. If you do not delete
31
- the provisions above, a recipient may use your version of this
32
- file under either the MPL or the GPL.
35
- Robert Ginda, <rginda@netscape.com>, original author
36
- L. David Baron, <dbaron@fas.harvard.edu>, modified for Layout Debugger
41
<!ENTITY % layoutdebugDTD
42
SYSTEM "chrome://layoutdebug/locale/layoutdebug.dtd">
45
<!ENTITY W3C_RDFNS "http://www.w3.org/1999/02/22-rdf-syntax-ns#">
46
<!ENTITY NC_RDFNS "http://home.netscape.com/NC-rdf#">
47
<!ENTITY LDB_RDFNS "http://mozilla.org/newlayout/LDB-rdf#">
50
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css" ?>
52
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
53
<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
54
<?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
58
NOTE: Because this window is used for layout regression tests, the
59
persist attribute should never be used on anything. Otherwise there
60
is a risk of running baseline and verify runs under different
65
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
66
xmlns:rdf="&W3C_RDFNS;"
69
title="&ldb.MainWindow.title;"
70
titlemodifier="&ldb.MainWindow.title;"
71
contenttitlesetting="true"
72
titlemenuseparator=" - "
73
windowtype="mozapp:layoutdebug"
75
onunload="OnLDBUnload();"
76
width="610" height="450"
77
screenX="4" screenY="4"
80
<script src="chrome://layoutdebug/content/layoutdebug.js"/>
82
<commandset id="tasksCommands">
83
<command id="cmd_close" oncommand="window.close();"/>
84
<command id="cmd_quit"/>
87
<keyset id="tasksKeys">
88
<key id="openFileKb" key="&ldb.Open.commandkey;" oncommand="openFile()" modifiers="accel"/>
96
<menubar id="main-menubar" grippyhidden="true">
98
<menupopup id="menu_FilePopup">
99
<menuitem id="menu_open" label="&ldb.Open.label;" accesskey="&ldb.Open.accesskey;" key="openFileKb" oncommand="openFile()"/>
100
<menuitem id="menu_close"/>
103
<menu id="menu_Edit">
105
<menuitem id="menu_cut" />
106
<menuitem id="menu_copy" />
107
<menuitem id="menu_paste" />
108
<menuitem id="menu_delete" />
109
<menuitem id="menu_selectAll" />
112
<menu label="&ldb.RegressionTestMenu.label;"
113
accesskey="&ldb.RegressionTestMenu.accesskey;">
115
<menu label="&ldb.RunBaselineMenu.label;"
116
accesskey="&ldb.RunBaselineMenu.accesskey;"
117
id="menu_RTest_baseline"
118
datasources="rdf:null"
119
containment="&NC_RDFNS;child"
120
ref="&LDB_RDFNS;Root">
123
<menuitem uri="rdf:*"
124
label="rdf:&NC_RDFNS;name"
125
name="rdf:&NC_RDFNS;name"
126
oncommand="RunRTest(this.getAttribute('name'), true);" />
130
<menu label="&ldb.RunVerifyMenu.label;"
131
accesskey="&ldb.RunVerifyMenu.accesskey;"
132
id="menu_RTest_verify"
133
datasources="rdf:null"
134
containment="&NC_RDFNS;child"
135
ref="&LDB_RDFNS;Root">
138
<menuitem uri="rdf:*"
139
label="rdf:&NC_RDFNS;name"
140
name="rdf:&NC_RDFNS;name"
141
oncommand="RunRTest(this.getAttribute('name'), false);" />
146
<menuitem id="menu_AddNewList" label="&ldb.AddNewList.label;" accesskey="&ldb.AddNewList.accesskey;" oncommand="gRTestIndexList.add();" />
147
<menu label="&ldb.RemoveListMenu.label;"
148
accesskey="&ldb.RemoveListMenu.accesskey;"
149
id="menu_RTest_remove"
150
datasources="rdf:null"
151
containment="&NC_RDFNS;child"
152
ref="&LDB_RDFNS;Root">
155
<menuitem uri="rdf:*"
156
label="rdf:&NC_RDFNS;name"
157
name="rdf:&NC_RDFNS;name"
158
oncommand="gRTestIndexList.remove(this.getAttribute('name'));" />
164
<menu label="&ldb.ToggleMenu.label;"
165
accesskey="&ldb.ToggleMenu.accesskey;">
167
<menuitem type="checkbox" id="menu_visualDebugging" label="&ldb.visualDebugging.label;" accesskey="&ldb.visualDebugging.accesskey;" oncommand="toggle(this);" />
168
<menuitem type="checkbox" id="menu_visualEventDebugging" label="&ldb.visualEventDebugging.label;" accesskey="&ldb.visualEventDebugging.accesskey;" oncommand="toggle(this);" />
170
<menuitem type="checkbox" id="menu_paintFlashing" label="&ldb.paintFlashing.label;" accesskey="&ldb.paintFlashing.accesskey;" oncommand="toggle(this);" />
171
<menuitem type="checkbox" id="menu_paintDumping" label="&ldb.paintDumping.label;" accesskey="&ldb.paintDumping.accesskey;" oncommand="toggle(this);" />
172
<menuitem type="checkbox" id="menu_invalidateDumping" label="&ldb.invalidateDumping.label;" accesskey="&ldb.invalidateDumping.accesskey;" oncommand="toggle(this);" />
174
<menuitem type="checkbox" id="menu_eventDumping" label="&ldb.eventDumping.label;" accesskey="&ldb.eventDumping.accesskey;" oncommand="toggle(this);" />
175
<menuitem type="checkbox" id="menu_motionEventDumping" label="&ldb.motionEventDumping.label;" accesskey="&ldb.motionEventDumping.accesskey;" oncommand="toggle(this);" />
176
<menuitem type="checkbox" id="menu_crossingEventDumping" label="&ldb.crossingEventDumping.label;" accesskey="&ldb.crossingEventDumping.accesskey;" oncommand="toggle(this);" />
178
<menuitem type="checkbox" id="menu_reflowCounts" label="&ldb.reflowCounts.label;" accesskey="&ldb.reflowCounts.accesskey;" oncommand="toggle(this);" />
181
<menu label="&ldb.DumpMenu.label;"
182
accesskey="&ldb.DumpMenu.accesskey;">
184
<menuitem id="menu_dumpWebShells" label="&ldb.dumpWebShells.label;" accesskey="&ldb.dumpWebShells.accesskey;" oncommand="gDebugger.dumpWebShells();" />
185
<menuitem id="menu_dumpContent" label="&ldb.dumpContent.label;" accesskey="&ldb.dumpContent.accesskey;" oncommand="gDebugger.dumpContent();" />
186
<menuitem id="menu_dumpFrames" label="&ldb.dumpFrames.label;" accesskey="&ldb.dumpFrames.accesskey;" oncommand="gDebugger.dumpFrames();" />
187
<menuitem id="menu_dumpViews" label="&ldb.dumpViews.label;" accesskey="&ldb.dumpViews.accesskey;" oncommand="gDebugger.dumpViews();" />
189
<menuitem id="menu_dumpStyleSheets" label="&ldb.dumpStyleSheets.label;" accesskey="&ldb.dumpStyleSheets.accesskey;" oncommand="gDebugger.dumpStyleSheets();" />
190
<menuitem id="menu_dumpStyleContexts" label="&ldb.dumpStyleContexts.label;" accesskey="&ldb.dumpStyleContexts.accesskey;" oncommand="gDebugger.dumpStyleContexts();" />
192
<menuitem id="menu_dumpReflowStats" label="&ldb.dumpReflowStats.label;" accesskey="&ldb.dumpReflowStats.accesskey;" oncommand="gDebugger.dumpReflowStats();" />
195
<menu id="tasksMenu"/>
196
<menu id="windowMenu"/>
197
<menu id="menu_Help"/>
200
<toolbar grippyhidden="true">
201
<toolbarbutton id="back-button" class="toolbarbutton-1"
202
label="&ldb.BackButton.label;"
203
oncommand="gBrowser.goBack();" />
204
<toolbarbutton id="forward-button" class="toolbarbutton-1"
205
label="&ldb.ForwardButton.label;"
206
oncommand="gBrowser.goForward();" />
207
<toolbarbutton id="reload-button" class="toolbarbutton-1"
208
label="&ldb.ReloadButton.label;"
209
oncommand="gBrowser.reload();" />
210
<toolbarbutton id="stop-button" class="toolbarbutton-1"
211
label="&ldb.StopButton.label;"
212
oncommand="gBrowser.stop();" />
214
<textbox id="urlbar" class="chromeclass-location" flex="1"
215
onkeypress="if (event.keyCode == 13)
216
gBrowser.loadURI(this.value);" />
220
<browser flex="1" id="browser" type="content-primary"
221
homepage="resource:///res/samples/test0.html" />
224
<description id="status-text" value="" />