You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by jk...@apache.org on 2006/09/23 01:22:51 UTC

svn commit: r449122 [40/40] - in /tapestry/tapestry4/trunk/tapestry-framework/src: java/org/apache/tapestry/ java/org/apache/tapestry/dojo/ java/org/apache/tapestry/dojo/form/ java/org/apache/tapestry/dojo/html/ java/org/apache/tapestry/form/ java/org/...

Modified: tapestry/tapestry4/trunk/tapestry-framework/src/js/tests/test_event.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/tests/test_event.js?view=diff&rev=449122&r1=449121&r2=449122
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/tests/test_event.js (original)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/tests/test_event.js Fri Sep 22 16:22:30 2006
@@ -1,7 +1,8 @@
-dojo.setModulePrefix("tapestry", "../tapestry");
+dojo.registerModulePath("tapestry", "../tapestry");
 
-dojo.require("tapestry.*");
 dojo.require("tapestry.test");
+dojo.require("tapestry.lang");
+dojo.require("tapestry.event");
 
 function test_eventCapture_props(){
 	var fevent=document.createEvent('UIEvents');

Modified: tapestry/tapestry4/trunk/tapestry-framework/src/js/tests/test_form.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/tests/test_form.js?view=diff&rev=449122&r1=449121&r2=449122
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/tests/test_form.js (original)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/tests/test_form.js Fri Sep 22 16:22:30 2006
@@ -1,6 +1,6 @@
-dojo.setModulePrefix("tapestry", "../tapestry");
+dojo.registerModulePath("tapestry", "../tapestry");
 
-dojo.require("tapestry.*");
+dojo.require("tapestry.core");
 dojo.require("tapestry.test");
 dojo.require("tapestry.form");
 

Modified: tapestry/tapestry4/trunk/tapestry-framework/src/js/tests/test_form_validation.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/tests/test_form_validation.js?view=diff&rev=449122&r1=449121&r2=449122
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/tests/test_form_validation.js (original)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/tests/test_form_validation.js Fri Sep 22 16:22:30 2006
@@ -1,10 +1,11 @@
-dojo.setModulePrefix("tapestry", "../tapestry");
+dojo.registerModulePath("tapestry", "../tapestry");
 
-dojo.require("tapestry.*");
+dojo.require("tapestry.core");
+dojo.require("tapestry.event");
 dojo.require("tapestry.test");
 dojo.require("tapestry.form");
 dojo.require("dojo.lang.*");
-dojo.require("dojo.validate.common");
+dojo.require("dojo.validate.check");
 
 function test_register_invalidform(){
 	try {
@@ -47,7 +48,7 @@
 	// Profile for form input
 	var profile = {
 		// required fields
-		required: "tx2"
+		required: ["tx2"]
 	};
 	
 	// results object

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/tests/widget/test_TimePickerDate.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/tests/widget/test_TimePickerDate.js?view=auto&rev=449122
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/tests/widget/test_TimePickerDate.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/tests/widget/test_TimePickerDate.js Fri Sep 22 16:22:30 2006
@@ -0,0 +1,15 @@
+dojo.registerModulePath("tapestry", "../tapestry");
+
+dojo.require("tapestry.test");
+dojo.require("tapestry.core");
+dojo.require("dojo.date.format");
+
+function test_time_format(){
+	var dt = new Date();
+	var value = dojo.date.format(dt, {timePattern:"h:mm a"});
+	jum.assertTrue(value, value.indexOf("NaN") < 0);
+	
+	dt = new Date("03:00 am");
+	value = dojo.date.format(dt, {timePattern:"h:mm a"});
+	jum.assertFalse(value, value.indexOf("NaN") < 0);
+}

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/tests/widget/test_TimePickerDate.js
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: tapestry/tapestry4/trunk/tapestry-framework/src/js/tests/widget/test_widgetManager.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/tests/widget/test_widgetManager.js?view=diff&rev=449122&r1=449121&r2=449122
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/tests/widget/test_widgetManager.js (original)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/tests/widget/test_widgetManager.js Fri Sep 22 16:22:30 2006
@@ -1,10 +1,11 @@
-dojo.require("dojo.widget.Checkbox");
+// dojo.registerModulePath("tapestry", "../tapestry");
+dojo.registerModulePath("tapestry", "../tapestry");
 
-dojo.setModulePrefix("tapestry", "../tapestry");
-
-dojo.require("tapestry.*");
+dojo.require("dojo.namespace");
+dojo.require("dojo.widget.*");
+dojo.require("tapestry.core");
 dojo.require("tapestry.test");
-dojo.require("tapestry.widget.*");
+dojo.require("tapestry.widget.Widget");
 
 function test_syncfailure_widget(){
 	try {

Added: tapestry/tapestry4/trunk/tapestry-framework/src/test/org/apache/tapestry/junit/parse/TestInheritSpecification.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/test/org/apache/tapestry/junit/parse/TestInheritSpecification.java?view=auto&rev=449122
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/test/org/apache/tapestry/junit/parse/TestInheritSpecification.java (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/test/org/apache/tapestry/junit/parse/TestInheritSpecification.java Fri Sep 22 16:22:30 2006
@@ -0,0 +1,33 @@
+// Copyright Aug 27, 2006 The Apache Software Foundation
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+package org.apache.tapestry.junit.parse;
+
+import org.apache.tapestry.IRequestCycle;
+import org.apache.tapestry.form.Submit;
+
+
+/**
+ * Tests component specification inheritance.
+ * 
+ * @author jkuhnert
+ */
+public abstract class TestInheritSpecification extends Submit
+{
+    
+    protected boolean isClicked(IRequestCycle cycle, String name)
+    {
+        return cycle.getParameter(name + "myclick") != null;
+    }
+    
+}

Added: tapestry/tapestry4/trunk/tapestry-framework/src/test/org/apache/tapestry/junit/parse/TestInheritSpecification.jwc
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/test/org/apache/tapestry/junit/parse/TestInheritSpecification.jwc?view=auto&rev=449122
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/test/org/apache/tapestry/junit/parse/TestInheritSpecification.jwc (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/test/org/apache/tapestry/junit/parse/TestInheritSpecification.jwc Fri Sep 22 16:22:30 2006
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<!-- 
+   Copyright 2004, 2005 The Apache Software Foundation
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+
+<!DOCTYPE component-specification PUBLIC 
+  "-//Apache Software Foundation//Tapestry Specification 3.0//EN" 
+  "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">
+    
+<component-specification class="org.apache.tapestry.form.Submit">
+
+    <property name="basicString" />
+    
+</component-specification>