Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding cssui-standard test. #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/cssui-standard/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
r: 1
spec: "http://www.w3.org/TR/css3-ui/"
title: "CSS3 UI, Standard"
1 change: 1 addition & 0 deletions tests/cssui-standard/fixture.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<iframe id="cssui-standard" src="/tests/cssui-standard/iframe.html"></iframe>
3 changes: 3 additions & 0 deletions tests/cssui-standard/iframe.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<script>
location.hash = (new Date()).getTime();
</script>
15 changes: 15 additions & 0 deletions tests/cssui-standard/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
test("CSS text-overflow, standard", function() {
var elem = document.createElement("div");

assert( H.test.cssProp( elem, "textOverflow" ), "textOverflow standard, supported" );
});

test("CSS box-sizing, standard", function() {

var elem = document.createElement("div");

assert( H.test.cssProp( elem, "boxSizing" ), "boxSizing standard, supported" );

});

// TODO: Add functional tests to determine that content-box, padding-box, and border-box work properly