Sha256: 8c8cbf33b262fdca4a7fe8f3717948cb75caf3eb18c8a831390458be617ade70

Contents?: true

Size: 971 Bytes

Versions: 25

Compression:

Stored size: 971 Bytes

Contents

<!doctype html>
<meta charset="utf-8" />
<title>fire_event onClick test case</title>

<p>
  You should see the word “PASS” below.
</p>

<p id="result">FAIL</p>

<hr />

<form id="elements" onSubmit="return false;">
  <button>foo</button>
  <input type="checkbox" />
  <input type="file" />
  <input type="image" />
  <a href="#">foo</a>
  <input type="radio" />
  <select><option>foo</option></select>
  <select multiple><option>foo</option></select>
  <input type="text" />
  <textarea></textarea>
  <p>foo</p>
</form>

<script>

  var eventType = "click";
  var elementList = document.getElementById("elements").elements;
  var successfulList = new Array();

  for (i = 0; i < elementList.length; i++) {
    elementList[i].addEventListener(eventType, eventHandler, true);
  }

  function eventHandler (e) {
    successfulList.push(e);

    if (successfulList.length == elementList.length)
      document.getElementById("result").innerHTML = "PASS";
  }

</script>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
operawatir-0.7.pre4-jruby spec/fire_event/interactive/onClick.html
operawatir-0.7.pre3-jruby spec/fire_event/interactive/onClick.html
operawatir-0.7.pre2-jruby spec/fire_event/interactive/onClick.html
operawatir-0.7.pre1-jruby spec/fire_event/interactive/onClick.html
operawatir-0.6.pre1-jruby spec/fire_event/interactive/onClick.html
operawatir-0.5.1-jruby spec/fire_event/interactive/onClick.html
operawatir-0.5-jruby spec/fire_event/interactive/onClick.html
operawatir-0.5.pre3-jruby spec/fire_event/interactive/onClick.html
operawatir-0.5.pre2-jruby spec/fire_event/interactive/onClick.html
operawatir-0.5.pre1-jruby spec/fire_event/interactive/onClick.html
operawatir-0.4.3.pre1-jruby spec/fire_event/interactive/onClick.html
operawatir-0.4.2-jruby spec/fire_event/interactive/onClick.html
operawatir-0.4.1-jruby spec/fire_event/interactive/onClick.html
operawatir-0.4.1.pre7-jruby spec/fire_event/interactive/onClick.html
operawatir-0.4.1.pre6-jruby spec/fire_event/interactive/onClick.html
operawatir-0.4.1.pre5-jruby spec/fire_event/interactive/onClick.html
operawatir-0.4.1.pre4-jruby spec/fire_event/interactive/onClick.html
operawatir-0.4.1.pre3-jruby spec/fire_event/interactive/onClick.html
operawatir-0.4.1.pre2-jruby spec/fire_event/interactive/onClick.html
operawatir-0.4.1.pre1-jruby spec/fire_event/interactive/onClick.html