Revision: 7410
Author: [email protected]
Date: Fri Jan 15 10:33:21 2010
Log: New apps created with webAppCreator now defaults to standards mode.
Patch by: jlabanca
Review by: jgw
http://code.google.com/p/google-web-toolkit/source/detail?r=7410
Modified:
/trunk/user/build.xml
/trunk/user/src/com/google/gwt/junit/JUnitShell.java
/trunk/user/src/com/google/gwt/junit/public/junit-standards.html
/trunk/user/src/com/google/gwt/user/client/ui/DecoratedStackPanel.java
/trunk/user/src/com/google/gwt/user/client/ui/DecoratedTabPanel.java
/trunk/user/src/com/google/gwt/user/client/ui/DecoratorPanel.java
/trunk/user/src/com/google/gwt/user/client/ui/DockPanel.java
/trunk/user/src/com/google/gwt/user/client/ui/HorizontalSplitPanel.java
/trunk/user/src/com/google/gwt/user/client/ui/StackPanel.java
/trunk/user/src/com/google/gwt/user/client/ui/TabPanel.java
/trunk/user/src/com/google/gwt/user/client/ui/VerticalSplitPanel.java
/trunk/user/src/com/google/gwt/user/tools/AppHtml.htmlsrc
/trunk/user/src/com/google/gwt/user/tools/JUnit-dev.launchsrc
/trunk/user/src/com/google/gwt/user/tools/JUnit-prod.launchsrc
/trunk/user/src/com/google/gwt/user/tools/project.ant.xmlsrc
/trunk/user/test/com/google/gwt/i18n/public_es_AR/junit-standards.html
/trunk/user/test/com/google/gwt/i18n/public_es_MX/junit-standards.html
=======================================
--- /trunk/user/build.xml Mon Nov 23 12:05:34 2009
+++ /trunk/user/build.xml Fri Jan 15 10:33:21 2010
@@ -422,7 +422,7 @@
includes="${gwt.junit.testcase.standards.includes}"
excludes="${gwt.junit.testcase.standards.excludes}" />
<gwt.junit test.name="test.standards"
- test.args="${test.args} -prod -XstandardsMode"
+ test.args="${test.args} -prod -standardsMode"
test.out="${junit.out}/standards"
test.cases="test.standards.tests">
<extraclasspaths>
<path refid="test.extraclasspath" />
=======================================
--- /trunk/user/src/com/google/gwt/junit/JUnitShell.java Wed Jan 13
14:20:12 2010
+++ /trunk/user/src/com/google/gwt/junit/JUnitShell.java Fri Jan 15
10:33:21 2010
@@ -362,17 +362,12 @@
registerHandler(new ArgHandlerFlag() {
@Override
public String getPurpose() {
- return "EXPERIMENTAL: Use CSS standards mode (rather than quirks
mode) for the hosting page";
+ return "Use CSS standards mode (rather than quirks mode) for the
hosting page";
}
@Override
public String getTag() {
- return "-XstandardsMode";
- }
-
- @Override
- public boolean isUndocumented() {
- return true;
+ return "-standardsMode";
}
@Override
=======================================
--- /trunk/user/src/com/google/gwt/junit/public/junit-standards.html Mon
Nov 2 08:50:07 2009
+++ /trunk/user/src/com/google/gwt/junit/public/junit-standards.html Fri
Jan 15 10:33:21 2010
@@ -1,5 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
-"http://www.w3.org/TR/html4/DTD/strict.dtd">
+<!doctype html>
<!--
Copyright 2008 Google Inc.
=======================================
--- /trunk/user/src/com/google/gwt/user/client/ui/DecoratedStackPanel.java
Wed May 14 14:17:50 2008
+++ /trunk/user/src/com/google/gwt/user/client/ui/DecoratedStackPanel.java
Fri Jan 15 10:33:21 2010
@@ -23,6 +23,13 @@
* A {...@link StackPanel} that wraps each item in a 2x3 grid (six box), which
* allows users to add rounded corners.
* </p>
+ *
+ * <p>
+ * This widget will <em>only</em> work in quirks mode. If your application
is in
+ * Standards Mode, use {...@link StackLayoutPanel} instead.
+ * </p>
+ *
+ * <p>
* <h3>CSS Style Rules</h3>
* <ul class='css'>
* <li>.gwt-DecoratedStackPanel { the panel itself }</li>
@@ -52,6 +59,9 @@
* <li>.gwt-DecoratedStackPanel .stackItemMiddleRightInner { the inner
element
* of the cell}</li>
* </ul>
+ * </p>
+ *
+ * @see StackLayoutPanel
*/
public class DecoratedStackPanel extends StackPanel {
public static final String DEFAULT_STYLENAME = "gwt-DecoratedStackPanel";
=======================================
--- /trunk/user/src/com/google/gwt/user/client/ui/DecoratedTabPanel.java
Wed Oct 28 09:10:53 2009
+++ /trunk/user/src/com/google/gwt/user/client/ui/DecoratedTabPanel.java
Fri Jan 15 10:33:21 2010
@@ -18,17 +18,26 @@
/**
* A {...@link TabPanel} that uses a {...@link DecoratedTabBar} with rounded
corners.
*
+ * <p>
+ * This widget will <em>only</em> work in quirks mode. If your application
is in
+ * Standards Mode, use {...@link TabLayoutPanel} instead.
+ * </p>
+ *
+ * <p>
* <h3>CSS Style Rules</h3>
* <ul class='css'>
* <li>.gwt-DecoratedTabPanel { the tab panel itself }</li>
* <li>.gwt-TabPanelBottom { the bottom section of the tab panel (the deck
* containing the widget) }</li>
* </ul>
+ * </p>
*
* <p>
* <h3>Example</h3>
* {...@example com.google.gwt.examples.TabPanelExample}
* </p>
+ *
+ * @see TabLayoutPanel
*/
public class DecoratedTabPanel extends TabPanel {
private static final String DEFAULT_STYLENAME = "gwt-DecoratedTabPanel";
=======================================
--- /trunk/user/src/com/google/gwt/user/client/ui/DecoratorPanel.java Wed
Jul 30 17:13:39 2008
+++ /trunk/user/src/com/google/gwt/user/client/ui/DecoratorPanel.java Fri
Jan 15 10:33:21 2010
@@ -25,6 +25,11 @@
* used to add rounded corners to a {...@link Widget}.
* </p>
* <p>
+ * This widget will <em>only</em> work in quirks mode in most cases.
+ * Specifically, setting the height or width of the DecoratorPanel will
result
+ * in rendering issues.
+ * </p>
+ * <p>
* Wrapping a {...@link Widget} in a "9-box" allows users to specify images
in each
* of the corners and along the four borders. This method allows the
content
* within the {...@link DecoratorPanel} to resize without disrupting the look
of
=======================================
--- /trunk/user/src/com/google/gwt/user/client/ui/DockPanel.java Mon May 18
11:47:32 2009
+++ /trunk/user/src/com/google/gwt/user/client/ui/DockPanel.java Fri Jan 15
10:33:21 2010
@@ -27,6 +27,12 @@
* A panel that lays its child widgets out "docked" at its outer edges, and
* allows its last widget to take up the remaining space in its center.
*
+ * <p>
+ * This widget will <em>only</em> work in quirks mode. If your application
is in
+ * Standards Mode, use {...@link DockLayoutPanel} instead.
+ * </p>
+ *
+ * @see DockLayoutPanel
*/
public class DockPanel extends CellPanel implements HasAlignment {
=======================================
--- /trunk/user/src/com/google/gwt/user/client/ui/HorizontalSplitPanel.java
Mon Nov 2 07:51:58 2009
+++ /trunk/user/src/com/google/gwt/user/client/ui/HorizontalSplitPanel.java
Fri Jan 15 10:33:21 2010
@@ -31,6 +31,11 @@
* the two widgets. Widgets contained within a
<code>HorizontalSplitPanel</code>
* will be automatically decorated with scrollbars when necessary.
*
+ * <p>
+ * This widget will <em>only</em> work in quirks mode. If your application
is in
+ * Standards Mode, use {...@link SplitLayoutPanel} instead.
+ * </p>
+ *
* <p>
* <img class='gallery' src='HorizontalSplitPanel.png'/>
* </p>
@@ -40,6 +45,8 @@
* <li>.gwt-HorizontalSplitPanel { the panel itself }</li>
* <li>.gwt-HorizontalSplitPanel hsplitter { the splitter }</li>
* </ul>
+ *
+ * @see SplitLayoutPanel
*/
public final class HorizontalSplitPanel extends SplitPanel {
/**
=======================================
--- /trunk/user/src/com/google/gwt/user/client/ui/StackPanel.java Mon Nov
23 13:01:27 2009
+++ /trunk/user/src/com/google/gwt/user/client/ui/StackPanel.java Fri Jan
15 10:33:21 2010
@@ -22,6 +22,12 @@
/**
* A panel that stacks its children vertically, displaying only one at a
time,
* with a header for each child which the user can click to display.
+ *
+ * <p>
+ * This widget will <em>only</em> work in quirks mode. If your application
is in
+ * Standards Mode, use {...@link StackLayoutPanel} instead.
+ * </p>
+ *
* <p>
* <img class='gallery' src='StackPanel.png'/>
* </p>
@@ -37,6 +43,8 @@
* <h3>Example</h3>
* {...@example com.google.gwt.examples.StackPanelExample}
* </p>
+ *
+ * @see StackLayoutPanel
*/
public class StackPanel extends ComplexPanel implements InsertPanel {
private static final String DEFAULT_STYLENAME = "gwt-StackPanel";
=======================================
--- /trunk/user/src/com/google/gwt/user/client/ui/TabPanel.java Fri Mar 20
11:33:42 2009
+++ /trunk/user/src/com/google/gwt/user/client/ui/TabPanel.java Fri Jan 15
10:33:21 2010
@@ -30,6 +30,11 @@
* widget. Its child widgets are shown as the user selects the various tabs
* associated with them. The tabs can contain arbitrary HTML.
*
+ * <p>
+ * This widget will <em>only</em> work in quirks mode. If your application
is in
+ * Standards Mode, use {...@link TabLayoutPanel} instead.
+ * </p>
+ *
* <p>
* <img class='gallery' src='TabPanel.png'/>
* </p>
@@ -53,6 +58,8 @@
* <h3>Example</h3>
* {...@example com.google.gwt.examples.TabPanelExample}
* </p>
+ *
+ * @see TabLayoutPanel
*/
//Cannot do anything about tab panel implementing TabListener until next
release.
=======================================
--- /trunk/user/src/com/google/gwt/user/client/ui/VerticalSplitPanel.java
Mon Nov 2 07:51:58 2009
+++ /trunk/user/src/com/google/gwt/user/client/ui/VerticalSplitPanel.java
Fri Jan 15 10:33:21 2010
@@ -31,6 +31,11 @@
* <code>VerticalSplitterPanel</code> will be automatically decorated with
* scrollbars when necessary.
*
+ * <p>
+ * This widget will <em>only</em> work in quirks mode. If your application
is in
+ * Standards Mode, use {...@link SplitLayoutPanel} instead.
+ * </p>
+ *
* <p>
* <img class='gallery' src='VerticalSplitPanel.png'/>
* </p>
@@ -40,6 +45,8 @@
* <li>.gwt-VerticalSplitPanel { the panel itself }</li>
* <li>.gwt-VerticalSplitPanel vsplitter { the splitter }</li>
* </ul>
+ *
+ * @see SplitLayoutPanel
*/
public final class VerticalSplitPanel extends SplitPanel {
/**
=======================================
--- /trunk/user/src/com/google/gwt/user/tools/AppHtml.htmlsrc Wed Jan 6
12:18:02 2010
+++ /trunk/user/src/com/google/gwt/user/tools/AppHtml.htmlsrc Fri Jan 15
10:33:21 2010
@@ -1,10 +1,9 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<!-- The HTML 4.01 Transitional DOCTYPE declaration-->
-<!-- above set at the top of the file will set -->
-<!-- the browser's rendering engine into -->
-<!-- "Quirks Mode". Replacing this declaration -->
-<!-- with a "Standards Mode" doctype is supported, -->
-<!-- but may lead to some differences in layout. -->
+<!doctype html>
+<!-- The DOCTYPE declaration above will set the -->
+<!-- browser's rendering engine into -->
+<!-- "Standards Mode". Replacing this declaration -->
+<!-- with a "Quirks Mode" doctype may lead to some -->
+<!-- differences in layout. -->
<html>
<head>
=======================================
--- /trunk/user/src/com/google/gwt/user/tools/JUnit-dev.launchsrc Wed Nov
18 17:52:02 2009
+++ /trunk/user/src/com/google/gwt/user/tools/JUnit-dev.launchsrc Fri Jan
15 10:33:21 2010
@@ -12,6 +12,6 @@
<listEntry value="<?xml version="1.0"
encoding="UTF-8"?> <runtimeClasspathEntry
externalArchive="@gwtDevPath" path="3"
type="2"/> "/>
</listAttribute>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR"
value="@moduleShortName"/>
-<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS"
value="-Dgwt.args="-logLevel WARN" -Xmx256M"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS"
value="-Dgwt.args="-standardsMode -logLevel WARN" -Xmx256M"/>
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables"
value="true"/>
</launchConfiguration>
=======================================
--- /trunk/user/src/com/google/gwt/user/tools/JUnit-prod.launchsrc Mon Nov
23 12:05:34 2009
+++ /trunk/user/src/com/google/gwt/user/tools/JUnit-prod.launchsrc Fri Jan
15 10:33:21 2010
@@ -12,6 +12,6 @@
<listEntry value="<?xml version="1.0"
encoding="UTF-8"?> <runtimeClasspathEntry
externalArchive="@gwtDevPath" path="3"
type="2"/> "/>
</listAttribute>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR"
value="@moduleShortName"/>
-<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS"
value="-Dgwt.args="-prod -logLevel WARN -out www-test" -Xmx256M"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS"
value="-Dgwt.args="-prod -standardsMode -logLevel WARN -out
www-test" -Xmx256M"/>
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables"
value="true"/>
</launchConfiguration>
=======================================
--- /trunk/user/src/com/google/gwt/user/tools/project.ant.xmlsrc Thu Dec 3
14:35:35 2009
+++ /trunk/user/src/com/google/gwt/user/tools/project.ant.xmlsrc Fri Jan 15
10:33:21 2010
@@ -70,7 +70,7 @@
<mkdir dir="reports/htmlunit.dev" />
<junit fork="yes" printsummary="yes" haltonfailure="yes">
<jvmarg line="-Xmx256m" />
- <sysproperty key="gwt.args" value="-logLevel WARN" />
+ <sysproperty key="gwt.args" value="-standardsMode -logLevel WARN" />
<sysproperty key="java.awt.headless" value="true" />
<classpath>
<pathelement location="src" />
@@ -92,7 +92,7 @@
<mkdir dir="reports/htmlunit.prod" />
<junit fork="yes" printsummary="yes" haltonfailure="yes">
<jvmarg line="-Xmx256m" />
- <sysproperty key="gwt.args" value="-prod -logLevel WARN -out
www-test" />
+ <sysproperty key="gwt.args" value="-prod -standardsMode -logLevel
WARN -standardsMode -out www-test" />
<sysproperty key="java.awt.headless" value="true" />
<classpath>
<pathelement location="src" />
=======================================
--- /trunk/user/test/com/google/gwt/i18n/public_es_AR/junit-standards.html
Mon Nov 2 08:50:07 2009
+++ /trunk/user/test/com/google/gwt/i18n/public_es_AR/junit-standards.html
Fri Jan 15 10:33:21 2010
@@ -1,3 +1,4 @@
+<!doctype html>
<!--
Copyright 2008 Google Inc.
=======================================
--- /trunk/user/test/com/google/gwt/i18n/public_es_MX/junit-standards.html
Mon Nov 2 08:50:07 2009
+++ /trunk/user/test/com/google/gwt/i18n/public_es_MX/junit-standards.html
Fri Jan 15 10:33:21 2010
@@ -1,3 +1,4 @@
+<!doctype html>
<!--
Copyright 2008 Google Inc.
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors