fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-11-16 01:50 pm

[dw-free] JS broken in new update page on Opera

[commit: http://hg.dwscoalition.org/dw-free/rev/92646f1457a7]

http://bugs.dwscoalition.org/show_bug.cgi?id=4056

Tests for tagselector initalization. Very bare, but let's start here.

Patch by [personal profile] fu.

Files modified:
  • views/dev/tests/tagselector.html
  • views/dev/tests/tagselector.js
--------------------------------------------------------------------------------
diff -r 80e149a79b7f -r 92646f1457a7 views/dev/tests/tagselector.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/views/dev/tests/tagselector.html	Wed Nov 16 21:52:09 2011 +0800
@@ -0,0 +1,3 @@
+<div>
+<textarea></textarea>
+</div>
diff -r 80e149a79b7f -r 92646f1457a7 views/dev/tests/tagselector.js
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/views/dev/tests/tagselector.js	Wed Nov 16 21:52:09 2011 +0800
@@ -0,0 +1,23 @@
+/* INCLUDE:
+jquery: js/jquery/jquery.ui.core.js
+jquery: js/jquery/jquery.ui.widget.js
+jquery: js/jquery/jquery.ui.dialog.js
+jquery: js/jquery.tagselector.js
+*/
+
+module( "old" );
+test( "no corresponding old function", function() {
+    expect(0);
+});
+
+module( "jquery" );
+test( "initialize tagselector", function() {
+    $("textarea").tagselector();
+
+    expect(1);
+
+    equal($("button").length, 1);
+} );
+
+
+
--------------------------------------------------------------------------------