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
news manifest{ | |
"name": "BBC News", | |
"description": "Get the latest, breaking news from our team of reporters", | |
"launch_path": "/news", | |
"icons": { | |
"128": "" | |
}, | |
"developer": { | |
"name": "BBC News", | |
"url": "http://www.bbc.co.uk" |
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
if (!Date.prototype.toISOString) { | |
Date.prototype.toISOString = function () { | |
function pad(n) { return n < 10 ? '0' + n : n; } | |
function ms(n) { return n < 10 ? '00'+ n : n < 100 ? '0' + n : n } | |
return this.getFullYear() + '-' + | |
pad(this.getMonth() + 1) + '-' + | |
pad(this.getDate()) + 'T' + | |
pad(this.getHours()) + ':' + | |
pad(this.getMinutes()) + ':' + | |
pad(this.getSeconds()) + '.' + |
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
phantomjs examples/netsniff.js http://m.bbc.co.uk/news false iPhone 320 > Njsios320.har | |
phantomjs examples/netsniff.js http://m.bbc.co.uk/news true iPhone 320 > jsios320.har | |
phantomjs examples/netsniff.js http://m.bbc.co.uk/news true iPhone 600 > jsios600.har | |
phantomjs examples/netsniff.js http://m.bbc.co.uk/news true iPhone 1024> jsios1024.har |
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
curl http://localhost:3000/?url=m.live.bbc.co.uk/news\&width=320\&userAgent=font-exclude\&delay=2000\ > bbc1L.png | |
curl http://localhost:3000/?url=http://dave-sandbox.t.proxylocal.com/news\&width=320\&userAgent=font-exclude\&delay=2000\ > bbc1.png | |
node imagediff [-d|diff] bbc1.png bbc1L.png diff1.png |
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
task :default => [:reset_shots_folder, :save_images, :compare_images] do | |
puts 'Done!'; | |
end | |
task :compare_images do | |
files = [] | |
Dir.glob("shots/*/*.png") do |filename| | |
files << filename | |
end |
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
java -jar <sel> -host 192.168.1.XX -role node -hub http://10.227.45.237:4444 -browser browserName=firefox,platform=WINDOWS -browser "browserName=internet explorer,platform=WINDOWS |
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
java -jar selenium-server-standalone-2.32.0.jar -host 192.168.1.11 -role node -hub http://10.227.45.237:4444 -browser browserName=firefox,platform=WINDOWS -browser browserName=chrome,platform=WINDOWS -browser "browserName=internet explorer,version=9,platform=WINDOWS |
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
#Type domain URL below, here are a couple of examples | |
domains: | |
code: http://pal.sandbox.dev.bbc.co.uk | |
live: http://www.live.bbc.co.uk | |
#compare_domain: http://www.live.bbc.co.uk | |
#Type screen widths below, here are a couple of examples | |
screen_widths: | |
- 320 |
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
# Add only 2 domains, key will act as a label | |
domains: | |
sandbox: "http://pal.sandbox.dev.bbc.co.uk" | |
live: "http://pal.sandbox.dev.bbc.co.uk" | |
#Type screen widths below, here are a couple of examples | |
screen_widths: | |
- 320 | |
- 600 | |
- 1024 |
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
#Type domain URL below, here are a couple of examples | |
domains: | |
code: http://pal.sandbox.dev.bbc.co.uk | |
live: http://www.live.bbc.co.uk | |
#compare_domain: http://www.live.bbc.co.uk | |
#Type screen widths below, here are a couple of examples | |
screen_widths: | |
- 320 |
OlderNewer