This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react-dom.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/flickity/2.0.3/flickity.pkgd.js" ></script> | |
<meta charset="utf-8"> | |
<style rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flickity/2.0.3/flickity.min.css"></style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.star { | |
font-size: 28px; | |
margin-left: 2px; | |
color: #E3E5E7; | |
@media screen and (min-width: 768px) { | |
width: 900px; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { moduleForComponent, test } from 'ember-qunit'; | |
import hbs from 'htmlbars-inline-precompile'; | |
import Ember from 'ember'; | |
const routerStub = Ember.Service.extend({ | |
transitionTo() { | |
return ''; | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.svg{ | |
&__sub-element{ | |
color: red; | |
&--state{ | |
color: cheesy-pink; | |
} | |
} | |
background: url(path/fdfs); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// location: ./assertions/compareScreenshot.js | |
var resemblejs = require('node-resemble-js'), | |
fs = require('fs'); | |
exports.assertion = function(filename, expected) { | |
var screenshotPath = 'test/screenshots/', | |
baselinePath = screenshotPath + 'baseline/' + filename, | |
resultPath = screenshotPath + 'results/' + filename, | |
diffPath = screenshotPath + 'diffs/' + filename; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Returns the tests to be run | |
*/ | |
function getFailedTests() { | |
var cases = []; | |
$('h3:not(.hidden)').each(function(){ | |
cases.push($(this).text().match(/[0-9]*\.[0-9]*/)[0]); | |
}) | |
return "...test -c " + (cases.join(' -c ')); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Returns the name of the branch regarding the task number and title | |
* @example XXX-129-remove-blank-space-from-selector-view | |
*/ | |
function rsGetTitle() { | |
return $('#key-val').text() + '-' + $('#summary-val').text().toLowerCase().replace(/ /g, '-'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.getGitTag = function(){ | |
return ( | |
$('#content > h2').text().replace('#', '') + | |
'-' + | |
$('#content .subject h3').text().replace('-', '') | |
).replace(' ', '-').toLowerCase(); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Currencies</title> | |
</head> | |
<body> | |
<div> | |
<label for="incoming-price">The price of the leather bag is</label> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>FormValidation</title> | |
</head> | |
<body> | |
<form id="form" action="http://giphy.com/gifs/xnp2bUzXDhYnS"> | |
<div> | |
<label for="name">First name</label> |