added text selection test to testsuite
[swftools.git] / spec / textselectspaces.spec.rb
diff --git a/spec/textselectspaces.spec.rb b/spec/textselectspaces.spec.rb
new file mode 100644 (file)
index 0000000..8e126a5
--- /dev/null
@@ -0,0 +1,11 @@
+require File.dirname(__FILE__) + '/spec_helper'
+
+describe "pdf conversion" do
+    convert_file "textselectspaces.pdf" do
+        area_at(32,22,257,46).should_contain_text 'The quick brown fox'
+        area_at(32,53,226,77).should_contain_text 'The quick brown fox'
+        area_at(31,84,198,108).should_contain_text 'Thequickbrownfox'
+        area_at(33,111,423,137).should_contain_text 'Thequickbrownfox'
+        area_at(35,141,455,167).should_contain_text 'The quick brown fox'
+    end
+end