From cd3832011d74f117347df350bea8b373ce6f2e2b Mon Sep 17 00:00:00 2001
From: Corey Frang
Date: Wed, 27 Jul 2011 16:01:39 -0500
Subject: [PATCH 001/107] Mask: Adding some widget/unit test boilerplates
---
tests/unit/mask/mask.html | 46 ++++++++++++++++++++++++++++++++
tests/unit/mask/mask_core.js | 5 ++++
tests/unit/mask/mask_defaults.js | 10 +++++++
tests/unit/mask/mask_events.js | 5 ++++
tests/unit/mask/mask_methods.js | 5 ++++
tests/unit/mask/mask_options.js | 5 ++++
ui/jquery.ui.mask.js | 25 +++++++++++++++++
7 files changed, 101 insertions(+)
create mode 100644 tests/unit/mask/mask.html
create mode 100644 tests/unit/mask/mask_core.js
create mode 100644 tests/unit/mask/mask_defaults.js
create mode 100644 tests/unit/mask/mask_events.js
create mode 100644 tests/unit/mask/mask_methods.js
create mode 100644 tests/unit/mask/mask_options.js
create mode 100644 ui/jquery.ui.mask.js
diff --git a/tests/unit/mask/mask.html b/tests/unit/mask/mask.html
new file mode 100644
index 00000000000..36bfdb5a30a
--- /dev/null
+++ b/tests/unit/mask/mask.html
@@ -0,0 +1,46 @@
+
+
+
+
+ jQuery UI Mask Test Suite
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/unit/mask/mask_core.js b/tests/unit/mask/mask_core.js
new file mode 100644
index 00000000000..7c4ffb7c238
--- /dev/null
+++ b/tests/unit/mask/mask_core.js
@@ -0,0 +1,5 @@
+(function( $ ) {
+
+module( "mask: core" );
+
+})( jQuery );
\ No newline at end of file
diff --git a/tests/unit/mask/mask_defaults.js b/tests/unit/mask/mask_defaults.js
new file mode 100644
index 00000000000..5963342c1b6
--- /dev/null
+++ b/tests/unit/mask/mask_defaults.js
@@ -0,0 +1,10 @@
+commonWidgetTests( "mask", {
+ defaults: {
+ disabled: false,
+ mask: null,
+ placeholder: "_",
+
+ // callbacks
+ create: null
+ }
+});
diff --git a/tests/unit/mask/mask_events.js b/tests/unit/mask/mask_events.js
new file mode 100644
index 00000000000..1e625c95677
--- /dev/null
+++ b/tests/unit/mask/mask_events.js
@@ -0,0 +1,5 @@
+(function( $ ) {
+
+module( "mask: events" );
+
+})( jQuery );
\ No newline at end of file
diff --git a/tests/unit/mask/mask_methods.js b/tests/unit/mask/mask_methods.js
new file mode 100644
index 00000000000..7fdedc75d3f
--- /dev/null
+++ b/tests/unit/mask/mask_methods.js
@@ -0,0 +1,5 @@
+(function( $ ) {
+
+module( "mask: methods" );
+
+})( jQuery );
\ No newline at end of file
diff --git a/tests/unit/mask/mask_options.js b/tests/unit/mask/mask_options.js
new file mode 100644
index 00000000000..34927583ba3
--- /dev/null
+++ b/tests/unit/mask/mask_options.js
@@ -0,0 +1,5 @@
+(function( $ ) {
+
+module( "mask: options" );
+
+})( jQuery );
\ No newline at end of file
diff --git a/ui/jquery.ui.mask.js b/ui/jquery.ui.mask.js
new file mode 100644
index 00000000000..a7ccbdf414e
--- /dev/null
+++ b/ui/jquery.ui.mask.js
@@ -0,0 +1,25 @@
+/*!
+ * jQuery UI Mask @VERSION
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Mask
+ */
+(function( $, undefined ) {
+
+$.widget( "ui.mask", {
+ version: "@VERSION",
+ defaultElement: "",
+ options: {
+ mask: null,
+ placeholder: "_"
+ },
+ _create: function() {
+
+ }
+});
+
+
+})( jQuery );
\ No newline at end of file
From 936193f49899300913f63dd1d5d8ad6f6fff93ad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?=
Date: Wed, 27 Jul 2011 17:11:28 -0400
Subject: [PATCH 002/107] Mask tests: cleanup.
---
tests/unit/mask/mask.html | 44 ++++++++++++++-------------------
tests/unit/mask/mask_core.js | 2 +-
tests/unit/mask/mask_events.js | 2 +-
tests/unit/mask/mask_methods.js | 2 +-
tests/unit/mask/mask_options.js | 2 +-
5 files changed, 22 insertions(+), 30 deletions(-)
diff --git a/tests/unit/mask/mask.html b/tests/unit/mask/mask.html
index 36bfdb5a30a..24cc12b6a67 100644
--- a/tests/unit/mask/mask.html
+++ b/tests/unit/mask/mask.html
@@ -1,32 +1,28 @@
-
+
-
+
jQuery UI Mask Test Suite
-
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
+
@@ -34,13 +30,9 @@
-
-
-
-
+
-
diff --git a/tests/unit/mask/mask_core.js b/tests/unit/mask/mask_core.js
index 7c4ffb7c238..ac0896c579e 100644
--- a/tests/unit/mask/mask_core.js
+++ b/tests/unit/mask/mask_core.js
@@ -2,4 +2,4 @@
module( "mask: core" );
-})( jQuery );
\ No newline at end of file
+}( jQuery ) );
diff --git a/tests/unit/mask/mask_events.js b/tests/unit/mask/mask_events.js
index 1e625c95677..78efc381b40 100644
--- a/tests/unit/mask/mask_events.js
+++ b/tests/unit/mask/mask_events.js
@@ -2,4 +2,4 @@
module( "mask: events" );
-})( jQuery );
\ No newline at end of file
+}( jQuery ) );
diff --git a/tests/unit/mask/mask_methods.js b/tests/unit/mask/mask_methods.js
index 7fdedc75d3f..5d52b45900b 100644
--- a/tests/unit/mask/mask_methods.js
+++ b/tests/unit/mask/mask_methods.js
@@ -2,4 +2,4 @@
module( "mask: methods" );
-})( jQuery );
\ No newline at end of file
+}( jQuery ) );
diff --git a/tests/unit/mask/mask_options.js b/tests/unit/mask/mask_options.js
index 34927583ba3..5f3f04378b4 100644
--- a/tests/unit/mask/mask_options.js
+++ b/tests/unit/mask/mask_options.js
@@ -2,4 +2,4 @@
module( "mask: options" );
-})( jQuery );
\ No newline at end of file
+}( jQuery ) );
From 5b7fa9737fb5abddca2beb27908d4e70cc3ccb24 Mon Sep 17 00:00:00 2001
From: Corey Frang
Date: Wed, 27 Jul 2011 17:00:58 -0500
Subject: [PATCH 003/107] Unit Tests: Adding mask to all.html
---
tests/unit/all.html | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/unit/all.html b/tests/unit/all.html
index a36c9e00478..1bd40a05939 100644
--- a/tests/unit/all.html
+++ b/tests/unit/all.html
@@ -22,6 +22,7 @@
//"draggable/draggable.html",
//"droppable/droppable.html",
"effects/effects.html",
+ "mask/mask.html",
"menu/menu.html",
"position/position.html",
"progressbar/progressbar.html",
From 9dacfd1c7268c94c014173337ed51889cf25f43a Mon Sep 17 00:00:00 2001
From: Corey Frang
Date: Wed, 27 Jul 2011 17:01:47 -0500
Subject: [PATCH 004/107] Mask: Initial draft of _caret, implementation
borrowed from @digitalBush maskedInput plugin
---
tests/unit/mask/mask.html | 2 +-
tests/unit/mask/mask_core.js | 26 +++++++++++++++++++++++
ui/jquery.ui.mask.js | 41 ++++++++++++++++++++++++++++++++++--
3 files changed, 66 insertions(+), 3 deletions(-)
diff --git a/tests/unit/mask/mask.html b/tests/unit/mask/mask.html
index 24cc12b6a67..f4c0d617249 100644
--- a/tests/unit/mask/mask.html
+++ b/tests/unit/mask/mask.html
@@ -32,7 +32,7 @@
-
+