added clip spec
[swftools.git] / spec / clip.spec.rb
diff --git a/spec/clip.spec.rb b/spec/clip.spec.rb
new file mode 100644 (file)
index 0000000..48b7abf
--- /dev/null
@@ -0,0 +1,10 @@
+require File.dirname(__FILE__) + '/spec_helper'
+
+describe "pdf conversion" do
+    convert_file "clip.pdf" do
+        pixel_at(257,354).should_be_of_color 0xffffff
+        pixel_at(194,419).should_be_of_color 0x00ff00
+        pixel_at(116,496).should_be_of_color 0xffffff
+        pixel_at(109,353).should_be_of_color 0xffffff
+    end
+end