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

Commit

Permalink
fix(layout): resolve incorrect and duplicate layout tests
Browse files Browse the repository at this point in the history
There were a number of typos and incorrect combinations of values in the alignmentValues array that didn't correspond to the layout.scss causing incorrect tests to be run. There were also duplicates, there were 31 values, now 19.

Closes #4740.
  • Loading branch information
arush authored and ThomasBurleson committed Sep 22, 2015
1 parent 7264cab commit 5d9f960
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/core/services/layout/layout.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,11 @@ describe('layout directives', function() {
var flexValues = [0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 33, 34, 66, 67];
var offsetValues = [5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 33, 34, 66, 67];
var alignmentValues = [
'center', 'center center', 'center start', 'center end',
'end', 'end-center', 'end start', 'end end',
'space-around', 'space-around center', 'space-around start', 'space-around end',
'space-between', 'space-between center', 'space-between start', 'space-between end',
'center center', 'start center', 'end center', 'space-between center', 'space-around center',
'center start', 'start start', 'end start', 'space-between start', 'space-around start',
'center end', 'start end', 'end end', 'space-between end', 'space-around end'
];
"center", "center center", "center start", "center end",
"end", "end center", "end start", "end end",
"space-around", "space-around center", "space-around start", "space-around end",
"space-between", "space-between center", "space-between start", "space-between end",
"start center", "start start", "start end"];
var mappings = [
{ attribute: 'flex', suffixes: suffixes, values: flexValues, addDirectiveAsClass: true, testStandAlone: true},
{ attribute: 'flex-order', suffixes: suffixes, values: flexOrderValues },
Expand Down

0 comments on commit 5d9f960

Please sign in to comment.