require File.expand_path("../spec_helper", __FILE__)

describe "Driver" do
  context "browser connection" do

    compliant_on :browser => nil do
      it "can set the browser offline and online"  do
        driver.navigate.to url_for("html5Page.html")
        driver.should be_online

        driver.online = false
        driver.should_not be_online

        driver.online = true
        driver.should be_online
      end
    end

  end
end

require File.expand_path("../spec_helper", __FILE__)

describe "Driver" do
  context "browser connection" do

    compliant_on :browser => :android do
      it "can set the browser offline and online" do
        driver.navigate.to url_for("html5Page.html")
        driver.should be_online

        driver.online = false
        wait.until { not driver.online? }

        driver.online = true
        wait.until { driver.online? }
      end
    end

  end
end

Enable browser connection spec on Android.
JariBakken: Enable browser connection spec on Android.

git-svn-id: aa1aa1384423cb28c2b1e29129bb3a91de1d9196@15725 07704840-8298-11de-bf8c-fd130f914ac9
