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 cssflexbox test. #66

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
5 changes: 5 additions & 0 deletions tests/cssflexbox/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
r: 2
spec: "http://www.w3.org/TR/css3-flexbox/"
sources: ["https://github.com/Modernizr/Modernizr"]
title: "CSS3 Flexbox"
27 changes: 27 additions & 0 deletions tests/cssflexbox/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// test("CSS Flexbox", function() {
// // Need baseline test
// });

test("CSS Flexbox, flex-align", function() {
var div = document.createElement("div");

assert( H.test.cssProp( div, "flexAlign", true ), "flexAlign supported" );
});

test("CSS Flexbox, flex-flow", function() {
var div = document.createElement("div");

assert( H.test.cssProp( div, "flexFlow", true ), "flexFlow supported" );
});

test("CSS Flexbox, flex-pack", function() {
var div = document.createElement("div");

assert( H.test.cssProp( div, "flexPack", true ), "flexPack supported" );
});

test("CSS Flexbox, flex-order", function() {
var div = document.createElement("div");

assert( H.test.cssProp( div, "flexOrder", true ), "flexOrder supported" );
});