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
| Usage: | |
| Beta cluster (beta) | |
| node wptreporter.js "webpagetest.enwiki-bc-mobile-2gslow.anonymous.Barack_Obama.us-east-1.Google_Chrome-emulateMobile.firstView" 3 2 2016 21 0 "" 10 wikitext=yes | |
| Beta cluster (stable) | |
| node wptreporter.js "webpagetest.enwiki-bc-mobile-beta-2gslow.anonymous.Barack_Obama.us-east-1.Google_Chrome-emulateMobile.firstView" 4 2 2016 22 16 "" 10 | |
| Production (beta) | |
| node wptreporter.js "webpagetest.enwiki-mobile-beta-2gslow.anonymous.Barack_Obama.us-east-1.Google_Chrome-emulateMobile.firstView" 9 2 2016 22 0 "" 10 |
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
| var WebPageTest = require('webpagetest'); | |
| var url = 'http://wikipedia.org/'; | |
| var tLocation = 'Dulles.2G'; | |
| var key = 'YourKey'; | |
| var wbtInstance = 'http://www.webpagetest.org/'; | |
| var wpt = new WebPageTest( wbtInstance, key ); | |
| wpt.runTest(url, { | |
| runs: 9, | |
| firstViewOnly: true, | |
| connectivity: '2G', |
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
| var fetch = require('node-fetch'); | |
| var reports = ['http://www.webpagetest.org/jsonResult.php?test=151007_8V_144X']; | |
| function reportRow( url ) { | |
| fetch( url ).then( function ( resp ) { | |
| return resp.json(); | |
| } ).then( function ( result ) { | |
| if ( result.data && result.data.statusCode !== 400 ) { | |
| var fv = result.data.runs["1"]["firstView"]; | |
| console.log( fv.URL, ',', | |
| url, ',', |
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
| All structured data from the main and property namespace is available under the $1; text in the other namespaces is available under the $2; |
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
| diff --git a/resources/mmv/ui/mmv.ui.dialog.js b/resources/mmv/ui/mmv.ui.dialog.js | |
| index 27bf492..3d23708 100644 | |
| --- a/resources/mmv/ui/mmv.ui.dialog.js | |
| +++ b/resources/mmv/ui/mmv.ui.dialog.js | |
| @@ -63,6 +63,7 @@ | |
| this.initWarning(); | |
| this.$dialog.appendTo( this.$container ); | |
| + this.addWarning( 'foo', $( '<div class="fa">bar</div>' ), '<strong>text</strong>', document.createTextNode( 'food' ) ); | |
| } |
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
| review/d3r1ck01/d3r1ck01 x ~/git/core/extensions/MobileFrontend $ ag 'deprecate' resources/ | |
| resources/mobile.gallery/PhotoItem.js | |
| 14: M.define( 'mobile.gallery/PhotoItem', PhotoItem ).deprecate( 'modules/gallery/PhotoItem' ); | |
| resources/mobile.gallery/PhotoList.js | |
| 141: M.define( 'mobile.gallery/PhotoList', PhotoList ).deprecate( 'modules/gallery/PhotoList' ); | |
| resources/mobile.infiniteScroll/InfiniteScroll.js | |
| 133: .deprecate( 'InfiniteScroll' ); |
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
| M = mw.mobileFrontend | |
| Collection = M.require( 'ext.gather.collections.models/Collection' ) | |
| CollectionItemCard = M.require( 'ext.gather.collections.models/CollectionItemCard' ) | |
| Page = M.require( 'Page' ) | |
| var c = new Collection( { el: $( '.collection' ), enhance: true, items: [] } ) | |
| c.add( new CollectionItemCard( { | |
| page: new Page( { title: 'foo', extract: 'Hello world' } ) } ) ) |
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
| var x = document.querySelectorAll( '.foo' ); | |
| var y = []; | |
| var z = $( '.foo' ); |
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
| Running "assert-mw-env" task | |
| Running "karma:main" (karma) task | |
| INFO [karma]: Karma v0.12.36 server started at http://localhost:8142/ | |
| INFO [launcher]: Starting browser Chrome | |
| WARN [web-server]: 404: /favicon.ico | |
| INFO [Chrome 43.0.2357 (Mac OS X 10.9.5)]: Connected on socket HeSgcpMinJEnSkIJo2FF with id 26053404 | |
| ................................ | |
| Chrome 43.0.2357 (Mac OS X 10.9.5) Browser.js Methods are cached FAILED | |
| Expected: 4 |
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
| echo 'Scanning' | |
| # Download the latest oldest patch that has a score of 0 for Gather that is not marked as wip. | |
| gerrit.py --ignore 'WIP' --project 'mediawiki/extensions/Gather' --feeling_lucky 1 --ltscore 1 --gtscore -1 | |
| bundle install > tmp | |
| msg=$(bundle exec cucumber features/ --format rerun) | |
| # Run GerritCommandLine script with score and message | |
| if [ $? -ne 0 ]; then | |
| echo 'bad' | |
| gerrit.py --review -1 --message "${msg}" | |
| else |