added test for text selection functionality
[swftools.git] / spec / textarea.spec.rb
diff --git a/spec/textarea.spec.rb b/spec/textarea.spec.rb
new file mode 100644 (file)
index 0000000..dcaeea6
--- /dev/null
@@ -0,0 +1,10 @@
+require File.dirname(__FILE__) + '/spec_helper'
+
+describe "pdf conversion" do
+    convert_file "textarea.pdf" do
+        area_at(460,94,610,106).should_contain_text '97924ff65f9dfc75450ba'
+        area_at(467,373,525,384).should_contain_text '29cf24e47'
+        area_at(474,592,543,601).should_contain_text '0afa27099a'
+        area_at(59,798,131,808).should_contain_text '4c28e489b4'
+    end
+end