Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
html5 integrartion
Browse files Browse the repository at this point in the history
  • Loading branch information
globalworming committed May 5, 2014
1 parent e05a527 commit c9a2efe
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 14 deletions.
1 change: 0 additions & 1 deletion sahi-core/htdocs/spr/concat.js
Original file line number Diff line number Diff line change
Expand Up @@ -5021,7 +5021,6 @@ Sahi.prototype.prepareADs = function(){
this.addAD({tag: "ASIDE", type: null, event:"click", name: "_aside", attributes: ["sahiText", "id", "className", "index"], action: "_click", value: "sahiText"});
this.addAD({tag: "FOOTER", type: null, event:"click", name: "_footer", attributes: ["sahiText", "id", "className", "index"], action: "_click", value: "sahiText"});
this.addAD({tag: "ARTICLE", type: null, event:"click", name: "_article", attributes: ["sahiText", "id", "className", "index"], action: "_click", value: "sahiText"});
this.addAD({tag: "MAIN", type: null, event:"click", name: "_main", attributes: ["sahiText", "id", "className", "index"], action: "_click", value: "sahiText"});
this.addAD({tag: "FIGURE", type: null, event:"click", name: "_figure", attributes: ["sahiText", "id", "className", "index"], action: "_click", value: "sahiText"});
this.addAD({tag: "ADDRESS", type: null, event:"click", name: "_address", attributes: ["sahiText", "id", "className", "index"], action: "_click", value: "sahiText"});
};
Expand Down
26 changes: 26 additions & 0 deletions sahi-test-webapp/src/main/sahi/integration/html5BlockElements.sah
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
_include("pages/includeAll.js");

$Index.goTo();
_click(_link("HTML5 tags"));

_assertExists(_header(0));
_assertExists(_header("headerid"));
_assertExists(_header("headerclass"));
_assertExists(_aside(0));
_assertExists(_nav(0));
_assertExists(_footer(0));
_assertExists(_article(0));
_assertExists(_figure(0));
_assertExists(_address(0));












21 changes: 21 additions & 0 deletions sahi-test-webapp/src/main/sahi/integration/html5InputElements.sah
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
_include("pages/includeAll.js");

$Index.goTo();

_click(_link("HTML5 input types"));
_assertExists(_datebox("date"));
_setValue(_datebox("date"), "2002-03-02");
_assertEqual("2002-03-02", _getValue(_datebox("date")));
_assertExists(_numberbox("number"));
_setValue(_numberbox("number"), "532");
_assertEqual("532", _getValue(_numberbox("number")));
_assertExists(_rangebox("range"));
_setValue(_rangebox("range"), "80");
_assertEqual("80", _getValue(_rangebox("range")));







This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ _include("prototype.js")
_include("index.js")
_include("alert.js");
_include("form.js");
_include("html5BlockElements.js");
3 changes: 0 additions & 3 deletions sahi-test-webapp/src/main/sahi/scripts/html5BlockElements.sah

This file was deleted.

4 changes: 2 additions & 2 deletions sahi-test-webapp/src/main/webapp/html5-elements/tags.htm
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ <h1>HTML5 Elements</h1>
</nav>
</header>
<section>
<header>
<header id="headerid">
<h2>Section header</h2>
</header>
<article>
<header>
<header class="headerclass">
<h3>Article header</h3>
</header>
<div>
Expand Down

0 comments on commit c9a2efe

Please sign in to comment.