This file contains 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
'links href attrib should be set correctly': function(test) { | |
test.open('http://www.flipkart.com'); | |
var numLinks = 10; | |
for (var i = 0; i <= numLinks; i++) { | |
test.assert.attr('.menubar a:nth-child(' + i + ')', 'href', 'data-tracking-id'); | |
} | |
test.done(); | |
} |
This file contains 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
Chain INPUT (policy ACCEPT 21M packets, 21G bytes) | |
pkts bytes target prot opt in out source destination | |
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes) | |
pkts bytes target prot opt in out source destination | |
Chain OUTPUT (policy ACCEPT 13M packets, 21G bytes) | |
pkts bytes target prot opt in out source destination |
This file contains 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
var md = { | |
remove: function() { | |
this.remove.sickLeaveState = function() { | |
console.log('Removing sick leave state.'); | |
return true; | |
} | |
return this.remove; | |
}, | |
work: function() { | |
this.work.on = function(ticket) { |
This file contains 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
function reuseMe(test) { | |
test.open('lolcathost/somepage'); | |
} | |
module.exports = { | |
'Body exists on the page and has the correct form': function (test) { | |
reuseMe(test); | |
test.assert.exists('body', 'Body exists on the page'); | |
} |
This file contains 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
$ dalek log_message_test.js -l4 | |
Running tests | |
Running Browser: PhantomJS | |
OS: mac unknown 32bit | |
Browser Version: 1.9.7 | |
RUNNING TEST - "Should output a message" | |
☁ [USER] MESSAGE: TEST | |
✔ 0 Assertions run | |
✔ TEST - "Should output a message" SUCCEEDED |
This file contains 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
inject(function($state) { | |
expect($state.routes['/equipmentLines'].controller) | |
.toBe('equipmentLinesController'); | |
expect($state.routes['/equipmentLines'].templateUrl) | |
.toEqual('views/equipmentLines.html'); | |
}); |
This file contains 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
$colors: ( | |
metanav_bordertop: ( | |
one: red, | |
two: blue | |
) | |
); | |
body { | |
color: map-get(map-get($colors, metanav_bordertop), one); |
This file contains 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
// ---- | |
// Sass (v3.4.4) | |
// Compass (v1.0.1) | |
// ---- | |
$colors: ( | |
metanav_bordertop: ( | |
cromax: #F00000, | |
standox: #1B2B79, | |
powder: #B00008, |
This file contains 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
$map: ( | |
key1/key2: 'value' | |
) |
This file contains 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
$brands: ( | |
salame, | |
tonno, | |
margharita, | |
hawai | |
); | |
$colors: ( | |
primary_links_and_primary_buttons: ( | |
salame: #E63C28, |
OlderNewer