Sha256: f44cde1ea792c7e752131914709a1e8ddf03e2b85b2647a49729a6318bcd38cb
Contents?: true
Size: 1.99 KB
Versions: 9
Compression:
Stored size: 1.99 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>save_screendump_for_file (ScreenDumps)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> <pre><span class="ruby-comment cmt"># File test/tc_screen_dumps.rb, line 16</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">save_screendump_for_file</span>(<span class="ruby-identifier">url</span>,<span class="ruby-identifier">filename</span>) <span class="ruby-identifier">test_image</span>=<span class="ruby-ivar">@@filecache</span>.<span class="ruby-identifier">get_file_system_image</span>(<span class="ruby-identifier">url</span>) <span class="ruby-identifier">test_file</span>=<span class="ruby-identifier">test_image</span>.<span class="ruby-identifier">files</span>[<span class="ruby-identifier">filename</span>] <span class="ruby-identifier">assert_not_nil</span>(<span class="ruby-identifier">test_file</span>,<span class="ruby-node">"#{filename} should exist in #{url}"</span>) <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">test_file</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:to_screendump</span>),<span class="ruby-node">"#{filename} [class #{test_file.class}] does not implement to_screendump"</span>) <span class="ruby-comment cmt"># assert_not_equal(0,test_file.screendump_width)</span> <span class="ruby-comment cmt"># assert_not_equal(0,test_file.screendump_height)</span> <span class="ruby-identifier">save_screendump</span>(<span class="ruby-identifier">test_file</span>.<span class="ruby-identifier">to_screendump</span>) <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
9 entries across 9 versions & 1 rubygems