<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre, #msg p { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[170] trunk/spec/watir_compatability_spec.rb: </title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>170</dd>
<dt>Author</dt> <dd>arex</dd>
<dt>Date</dt> <dd>2008-05-30 03:54:46 -0400 (Fri, 30 May 2008)</dd>
</dl>
<h3>Log Message</h3>
<pre></pre>
<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkspecwatir_compatability_specrb">trunk/spec/watir_compatability_spec.rb</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkspecwatir_compatability_specrb"></a>
<div class="delfile"><h4>Deleted: trunk/spec/watir_compatability_spec.rb (169 => 170)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/spec/watir_compatability_spec.rb        2008-05-30 07:54:18 UTC (rev 169)
+++ trunk/spec/watir_compatability_spec.rb        2008-05-30 07:54:46 UTC (rev 170)
</span><span class="lines">@@ -1,257 +0,0 @@
</span><del>-require File.dirname(__FILE__) + '/spec_helper.rb'
-
-describe IE do
- before :each do
- @browser = IE.new
- end
-
- # Class methods
- it "should respond to .speed" do
- IE.should respond_to("speed")
- end
-
- it "should respond to .speed=" do
- IE.should respond_to("speed=")
- end
-
- it "should respond to .set_fast_speed" do
- IE.should respond_to("set_fast_speed")
- end
-
- it "should respond to .set_slow_speed" do
- IE.should respond_to("set_slow_speed")
- end
-
- it "should respond to .attach_timeout" do
- IE.should respond_to("attach_timeout")
- end
-
- it "should respond to .attach_timeout=" do
- IE.should respond_to("attach_timeout=")
- end
-
- it "should respond to .reset_attach_timeout" do
- IE.should respond_to("reset_attach_timeout")
- end
-
- it "should respond to .visible" do
- IE.should respond_to("visible")
- end
-
- it "should respond to .each" do
- IE.should respond_to("each")
- end
-
- it "should respond to .quit" do
- IE.should respond_to("quit")
- end
-
- it "should alias .start_window to .start" do
- IE.should respond_to("start")
- end
-
- # Instance methods
- it "should respond to #visible" do
- @browser.should respond_to("visible")
- end
-
- it "should respond to #visible=" do
- @browser.should respond_to("visible=")
- end
-
- it "should respond to #wait" do
- @browser.should respond_to("wait")
- end
-
- describe "#bring_to_front" do
- it "should return true" do
- @browser.bring_to_front.should be_true
- end
- end
-
- describe "#checkBox" do
- it "should behave like #checkbox" do
- pending
- end
- end
-
-end
-
-describe Button do
-
- before :all do
- @browser = IE.new
-
- end
-
- before :each do
- @browser.goto(TEST_HOST + "/forms_with_input_elements.html")
- end
-
- describe "#click_no_wait" do
- it "should behave like #click" do
- @browser.button(:id, 'new_user_submit').click_no_wait
- @browser.text.should include("You posted the following content:")
- end
- end
-
-end
-
-describe Link do
-
- before :all do
- @browser = IE.new
-
- end
-
- before :each do
- @browser.goto(TEST_HOST + "/non_control_elements.html")
- end
-
- describe "#click_no_wait" do
- it "should behave like #click" do
- @browser.link(:text, "Link 3").click_no_wait
- @browser.text.include?("User administration").should be_true
- end
- end
-
-end
-
-describe Image do
-
- before :all do
- @browser = IE.new
-
- end
-
- before :each do
- @browser.goto(TEST_HOST + "/images.html")
- end
-
- describe "#hasLoaded?" do
- it "should behave like #loaded?" do
- @browser.image(:name, 'circle').hasLoaded?.should be_true
- end
- end
-
- describe "#has_loaded?" do
- it "should behave like #loaded" do
- @browser.image(:name, 'circle').has_loaded?.should be_true
- end
- end
-
- describe "#fileSize" do
- it "should behave like #file_size" do
- @browser.image(:id, 'square').fileSize.should == 788
- end
- end
-
- describe "#fileCreatedDate" do
- it "should behave like #file_created_date" do
- image = @browser.image(:index, 2)
- path = File.dirname(__FILE__) + "/html/#{image.src}"
- image.file_created_date.to_i.should == File.mtime(path).to_i
- end
- end
-
-end
-
-describe RadioCheckCommon do
- before :all do
- @browser = IE.new
-
- end
-
- before :each do
- @browser.goto(TEST_HOST + "/forms_with_input_elements.html")
- end
-
- describe "#is_set?" do
- it "should behave like #set?" do
- @browser.radio(:id, "new_user_newsletter_yes").is_set?.should be_true
- end
- end
-
- describe "#isSet?" do
- it "should behave like #set?" do
- @browser.radio(:id, "new_user_newsletter_yes").isSet?.should be_true
- end
- end
-
- describe "#get_state" do
- it "should behave like #set?" do
- @browser.checkbox(:id, "new_user_interests_books").get_state.should be_true
- end
- end
-
- describe "#getState" do
- it "should behave like #set?" do
- @browser.checkbox(:id, "new_user_interests_books").getState.should be_true
- end
- end
-
-end
-
-describe SelectList do
- before :all do
- @browser = Celerity::IE.new
- end
-
- before :each do
- @browser.goto(TEST_HOST + "/forms_with_input_elements.html")
- end
-
- describe "#getSelectedItems" do
- it "should behave like #get_selected_items" do
- @browser.select_list(:name, "new_user_country").getSelectedItems.should == ["Norway"]
- @browser.select_list(:name, "new_user_languages").getSelectedItems.should == ["English", "Norwegian"]
- end
- end
-
- describe "#getAllContents" do
- it "should behave like #get_all_contents" do
- @browser.select_list(:name, "new_user_country").getAllContents.should == ["Denmark" ,"Norway" , "Sweden" , "United Kingdom", "USA"]
- end
- end
-
- describe "#clearSelection" do
- it "should behave like #clear selection" do
- @browser.select_list(:name, "new_user_languages").clearSelection
- @browser.select_list(:name, "new_user_languages").getSelectedItems.should be_empty
- end
- end
-
- describe "#select_value" do
- it "should behave like #select" do
- @browser.select_list(:name, "new_user_country").select_value("Denmark")
- @browser.select_list(:name, "new_user_country").getSelectedItems.should == ["Denmark"]
- end
- end
-
-end
-
-describe TextField do
- before :all do
- @browser = IE.new
- end
-
- before :each do
- @browser.goto(TEST_HOST + "/forms_with_input_elements.html")
- end
-
- describe "#dragContentsTo" do
- it "should behave like #drag_contents_to" do
- @browser.text_field(:name, "new_user_first_name").set("Smith")
- @browser.text_field(:name, "new_user_first_name").dragContentsTo(:name, "new_user_last_name")
- @browser.text_field(:name, "new_user_first_name").value.should be_empty
- @browser.text_field(:id, "new_user_last_name").value.should == "Smith"
- end
- end
-
- describe "#getContents" do
- it "should behave like #get_contents" do
- @browser.text_field(:name, "new_user_occupation").getContents.should == "Developer"
- end
- end
-
-end
</del><span class="cx">\ No newline at end of file
</span></span></pre>
</div>
</div>
</body>
</html>