mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
screenshots: References list dialog
Change-Id: I5a14412198cdc3cf48cd574195716fe0070f0158
This commit is contained in:
parent
d29f874983
commit
4fef9d141c
|
@ -309,12 +309,38 @@ function runTests( lang ) {
|
||||||
} );
|
} );
|
||||||
win.input.setValue( 'E = mc^2' ).moveCursorToEnd();
|
win.input.setValue( 'E = mc^2' ).moveCursorToEnd();
|
||||||
} );
|
} );
|
||||||
}, 1000 );
|
} );
|
||||||
surface.executeCommand( 'mathDialog' );
|
surface.executeCommand( 'mathDialog' );
|
||||||
win = surface.dialogs.currentWindow;
|
win = surface.dialogs.currentWindow;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
} );
|
} );
|
||||||
|
test.it( 'Reference list dialog', function () {
|
||||||
|
runScreenshotTest( 'VisualEditor_references_list',
|
||||||
|
// This function is converted to a string and executed in the browser
|
||||||
|
function () {
|
||||||
|
var win,
|
||||||
|
done = arguments[ arguments.length - 1 ],
|
||||||
|
surface = ve.init.target.surface;
|
||||||
|
|
||||||
|
surface.dialogs.once( 'opening', function ( win, opening ) {
|
||||||
|
opening.then( function () {
|
||||||
|
setTimeout( function () {
|
||||||
|
done(
|
||||||
|
seleniumUtils.getBoundingRect( [
|
||||||
|
win.$frame[ 0 ]
|
||||||
|
]
|
||||||
|
) );
|
||||||
|
}, 500 );
|
||||||
|
} );
|
||||||
|
} );
|
||||||
|
surface.executeCommand( 'referencesList' );
|
||||||
|
// The first command inserts a reference list instantly, so run again to open the window
|
||||||
|
surface.executeCommand( 'referencesList' );
|
||||||
|
win = surface.dialogs.currentWindow;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
} );
|
||||||
test.it( 'Cite button', function () {
|
test.it( 'Cite button', function () {
|
||||||
runScreenshotTest( 'VisualEditor_citoid_Cite_button',
|
runScreenshotTest( 'VisualEditor_citoid_Cite_button',
|
||||||
// This function is converted to a string and executed in the browser
|
// This function is converted to a string and executed in the browser
|
||||||
|
|
Loading…
Reference in a new issue