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
package example; | |
import org.junit.Before; | |
import org.junit.Test; | |
import com.thoughtworks.selenium.SeleneseTestCase; | |
public class GoogStringTest extends SeleneseTestCase { | |
private final String DIRECTORY_PREFIX = |
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 func = function () { var a = Math.random(); return ( ( a === func.a ) && func() ) || ( func.a = a ); } |
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 scenarios = function () { | |
return $( 'table' ).find( 'td:eq(0)' ).filter( ':contains(scenario)' ); | |
}; |
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
[global] | |
server.socket_host: '0.0.0.0' | |
log.error_file: 'host.log' | |
[/] | |
tools.staticdir.root = os.getcwd() | |
tools.staticdir.on = True | |
tools.staticdir.dir = "." |
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
$.ajax( { url: 'http://wss3single:9570/request/user_info', dataType: 'json', success: function (data) { x = data; alert( 'Done' ); }, error: function() { alert( 'UPS' ); } } ) |
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
infoportal.ui.show_search_result = function ( search_result ) { | |
t = $.template( $( '#result_template' ).html() ) | |
for ( var r in search_result ) { | |
$( '#result_table' ).append( t, search_result[ r ] ); | |
if ( r % 2 === 0 ) { | |
$( '#result tr.resultItem:last' ).addClass( 'odd' ); |
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
import yaml | |
res = yaml.load( file( 'app.yaml', 'r' ) ) | |
to_change = [x for x in res[ 'handlers' ] if x[ 'url' ] == '/project' ][ 0 ] | |
to_change[ 'login' ] = 'admin' | |
yaml.dump( res, file( 'app.yaml', 'w' ) ) | |
yaml.dump( { 'proxy_urls' : 'urls' }, file( 'settings.yaml', 'w' ) ) |
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
el = document.createElement( "script" ) | |
el.src = "http://code.jquery.com/jquery-1.4.2.min.js" | |
document.body.insertBefore(el) |
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 table = $( '<table>' ).append( $( '<tr>' ).append( $('<td>') ).append( $('<td>') ) ) |
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
goog.require('goog.testing.asserts'); | |
goog.require('infoportal.ui'); | |
var tb; | |
function setUp() { | |
tb = infoportal.ui.init(); | |
} | |
function tearDown() { |
NewerOlder