Sha256: cb7f8b90554e6413dbb02757e4e704fccbb1d7f7c5f492fad75a566d298bc0f9

Contents?: true

Size: 1.97 KB

Versions: 43

Compression:

Stored size: 1.97 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">&quot;#{filename} should exist in #{url}&quot;</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">&quot;#{filename} [class #{test_file.class}] does not implement to_screendump&quot;</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

43 entries across 9 versions & 1 rubygems

Version Path
ripxplore-0.17.1 doc/classes/ScreenDumps.src/M000386.html
ripxplore-0.17.1 doc/classes/ScreenDumps.src/M000404.html
ripxplore-0.17.1 doc/classes/ScreenDumps.src/M000520.html
ripxplore-0.17.1 doc/classes/ScreenDumps.src/M000495.html
ripxplore-0.17.1 doc/classes/ScreenDumps.src/M000499.html
ripxplore-0.17.1 doc/classes/ScreenDumps.src/M000364.html
ripxplore-0.17.1 doc/classes/ScreenDumps.src/M000501.html
ripxplore-0.17.1 doc/classes/ScreenDumps.src/M000391.html
ripxplore-0.17.0 doc/classes/ScreenDumps.src/M000499.html
ripxplore-0.17.0 doc/classes/ScreenDumps.src/M000404.html
ripxplore-0.17.0 doc/classes/ScreenDumps.src/M000521.html
ripxplore-0.17.0 doc/classes/ScreenDumps.src/M000501.html
ripxplore-0.17.0 doc/classes/ScreenDumps.src/M000391.html
ripxplore-0.17.0 doc/classes/ScreenDumps.src/M000364.html
ripxplore-0.17.0 doc/classes/ScreenDumps.src/M000386.html
ripxplore-0.17.0 doc/classes/ScreenDumps.src/M000495.html
ripxplore-0.16.1 doc/classes/ScreenDumps.src/M000404.html
ripxplore-0.16.1 doc/classes/ScreenDumps.src/M000364.html
ripxplore-0.16.1 doc/classes/ScreenDumps.src/M000386.html
ripxplore-0.16.1 doc/classes/ScreenDumps.src/M000499.html