test/fixtures/executable/flex3sdk_gem/fdb in sprout-1.1.10.pre vs test/fixtures/executable/flex3sdk_gem/fdb in sprout-1.1.11.pre
- old
+ new
@@ -1,10 +1,11 @@
#!/usr/bin/env ruby
class FakeFDB
def initialize
+ validate_argv
str = "Adobe fdb (Flash Player Debugger) [build 16076]\n"
str << "Copyright (c) 2004-2007 Adobe, Inc. All rights reserved.\n"
str << "(fdb) "
printf str
gather_input
@@ -37,10 +38,16 @@
end
gather_input
end
+ def validate_argv
+ if ARGV.size > 0
+ raise "FAKE FDB doesn't expect any params, but received, #{ARGV}"
+ end
+ end
+
def handle_run args
str = "Waiting for Player to connect\n"
str << "Player connected; session starting.\n"
str << "Set breakpoints and then type 'continue' to resume the session.\n"
str = "[SWF] Users:lbayes:Projects:AsUnit-P2:asunit-4.0:bin:AsUnitRunner.swf - 226,833 bytes after decompression\n"
@@ -55,10 +62,13 @@
printf str
end
def handle_continue args
str = "Continuing now\n"
+ str << "<TestResults>\n"
+ str << "Fake Content\n"
+ str << "</TestResults>\n"
str << "(fdb) "
printf str
end
def handle_kill args
@@ -85,6 +95,7 @@
end
end
fake_fdb = FakeFDB.new
+