Index: trunk/phase3/tests/jasmine/spec/mediawiki.Uri.spec.js |
— | — | @@ -93,7 +93,7 @@ |
94 | 94 | } ); |
95 | 95 | |
96 | 96 | describe( "should handle multiple value query args (overrideKeys on)", function() { |
97 | | - var uri = new mw.Uri( 'http://www.sample.com/dir/?m=foo&m=bar&n=1', { overrideKeys: true } ); |
| 97 | + var uri = new mw.Uri( 'http://www.example.com/dir/?m=foo&m=bar&n=1', { overrideKeys: true } ); |
98 | 98 | it ( "should parse with multiple values", function() { |
99 | 99 | expect( uri.query.m ).toEqual( 'bar' ); |
100 | 100 | expect( uri.query.n ).toEqual( '1' ); |
— | — | @@ -102,12 +102,12 @@ |
103 | 103 | uri.query.n = [ "x", "y", "z" ]; |
104 | 104 | expect( uri.toString() ).toContain( 'm=bar' ); |
105 | 105 | expect( uri.toString() ).toContain( 'n=x&n=y&n=z' ); |
106 | | - expect( uri.toString().length ).toEqual( 'http://www.sample.com/dir/?m=bar&n=x&n=y&n=z'.length ); |
| 106 | + expect( uri.toString().length ).toEqual( 'http://www.example.com/dir/?m=bar&n=x&n=y&n=z'.length ); |
107 | 107 | } ); |
108 | 108 | } ); |
109 | 109 | |
110 | 110 | describe( "should handle multiple value query args (overrideKeys off)", function() { |
111 | | - var uri = new mw.Uri( 'http://www.sample.com/dir/?m=foo&m=bar&n=1', { overrideKeys: false } ); |
| 111 | + var uri = new mw.Uri( 'http://www.example.com/dir/?m=foo&m=bar&n=1', { overrideKeys: false } ); |
112 | 112 | it ( "should parse with multiple values", function() { |
113 | 113 | expect( uri.query.m.length ).toEqual( 2 ); |
114 | 114 | expect( uri.query.m[0] ).toEqual( 'foo' ); |
— | — | @@ -118,25 +118,25 @@ |
119 | 119 | uri.query.n = [ "x", "y", "z" ]; |
120 | 120 | expect( uri.toString() ).toContain( 'm=foo&m=bar' ); |
121 | 121 | expect( uri.toString() ).toContain( 'n=x&n=y&n=z' ); |
122 | | - expect( uri.toString().length ).toEqual( 'http://www.sample.com/dir/?m=foo&m=bar&n=x&n=y&n=z'.length ); |
| 122 | + expect( uri.toString().length ).toEqual( 'http://www.example.com/dir/?m=foo&m=bar&n=x&n=y&n=z'.length ); |
123 | 123 | } ); |
124 | 124 | it ( "should be okay with removing values", function() { |
125 | 125 | uri.query.m.splice( 0, 1 ); |
126 | 126 | delete uri.query.n; |
127 | | - expect( uri.toString() ).toEqual( 'http://www.sample.com/dir/?m=bar' ); |
| 127 | + expect( uri.toString() ).toEqual( 'http://www.example.com/dir/?m=bar' ); |
128 | 128 | uri.query.m.splice( 0, 1 ); |
129 | | - expect( uri.toString() ).toEqual( 'http://www.sample.com/dir/' ); |
| 129 | + expect( uri.toString() ).toEqual( 'http://www.example.com/dir/' ); |
130 | 130 | } ); |
131 | 131 | } ); |
132 | 132 | |
133 | 133 | describe( "should deal with an all-dressed URI with everything", function() { |
134 | | - var uri = new mw.Uri( 'http://auth@www.sample.com:81/dir/dir.2/index.htm?q1=0&&test1&test2=value+%28escaped%29#top' ); |
| 134 | + var uri = new mw.Uri( 'http://auth@www.example.com:81/dir/dir.2/index.htm?q1=0&&test1&test2=value+%28escaped%29#top' ); |
135 | 135 | |
136 | 136 | it( "should have basic object properties", function() { |
137 | 137 | expect( uri.protocol ).toEqual( 'http' ); |
138 | 138 | expect( uri.user ).toEqual( 'auth' ); |
139 | 139 | expect( uri.password ).not.toBeDefined(); |
140 | | - expect( uri.host ).toEqual( 'www.sample.com' ); |
| 140 | + expect( uri.host ).toEqual( 'www.example.com' ); |
141 | 141 | expect( uri.port ).toEqual( '81' ); |
142 | 142 | expect( uri.path ).toEqual( '/dir/dir.2/index.htm' ); |
143 | 143 | expect( uri.query ).toEqual( { q1: '0', test1: null, test2: 'value (escaped)' } ); |
— | — | @@ -149,11 +149,11 @@ |
150 | 150 | } ); |
151 | 151 | |
152 | 152 | it( "should have authority equal to auth@hostport", function() { |
153 | | - expect( uri.getAuthority() ).toEqual( 'auth@www.sample.com:81' ); |
| 153 | + expect( uri.getAuthority() ).toEqual( 'auth@www.example.com:81' ); |
154 | 154 | } ); |
155 | 155 | |
156 | 156 | it( "should have hostport equal to host:port", function() { |
157 | | - expect( uri.getHostPort() ).toEqual( 'www.sample.com:81' ); |
| 157 | + expect( uri.getHostPort() ).toEqual( 'www.example.com:81' ); |
158 | 158 | } ); |
159 | 159 | |
160 | 160 | it( "should have query string which contains all components", function() { |
Index: trunk/phase3/tests/phpunit/includes/upload/UploadStashTest.php |
— | — | @@ -19,13 +19,13 @@ |
20 | 20 | 'sysop' => new ApiTestUser( |
21 | 21 | 'Uploadstashtestsysop', |
22 | 22 | 'Upload Stash Test Sysop', |
23 | | - 'upload_stash_test_sysop@sample.com', |
| 23 | + 'upload_stash_test_sysop@example.com', |
24 | 24 | array( 'sysop' ) |
25 | 25 | ), |
26 | 26 | 'uploader' => new ApiTestUser( |
27 | 27 | 'Uploadstashtestuser', |
28 | 28 | 'Upload Stash Test User', |
29 | | - 'upload_stash_test_user@sample.com', |
| 29 | + 'upload_stash_test_user@example.com', |
30 | 30 | array() |
31 | 31 | ) |
32 | 32 | ); |
Index: trunk/phase3/tests/phpunit/includes/filerepo/StoreBatchTest.php |
— | — | @@ -14,13 +14,13 @@ |
15 | 15 | 'sysop' => new ApiTestUser( |
16 | 16 | 'Uploadstashtestsysop', |
17 | 17 | 'Upload Stash Test Sysop', |
18 | | - 'upload_stash_test_sysop@sample.com', |
| 18 | + 'upload_stash_test_sysop@example.com', |
19 | 19 | array( 'sysop' ) |
20 | 20 | ), |
21 | 21 | 'uploader' => new ApiTestUser( |
22 | 22 | 'Uploadstashtestuser', |
23 | 23 | 'Upload Stash Test User', |
24 | | - 'upload_stash_test_user@sample.com', |
| 24 | + 'upload_stash_test_user@example.com', |
25 | 25 | array() |
26 | 26 | ) |
27 | 27 | ); |
Index: trunk/phase3/tests/phpunit/includes/api/ApiTestCase.php |
— | — | @@ -26,13 +26,13 @@ |
27 | 27 | 'sysop' => new ApiTestUser( |
28 | 28 | 'Apitestsysop', |
29 | 29 | 'Api Test Sysop', |
30 | | - 'api_test_sysop@sample.com', |
| 30 | + 'api_test_sysop@example.com', |
31 | 31 | array( 'sysop' ) |
32 | 32 | ), |
33 | 33 | 'uploader' => new ApiTestUser( |
34 | 34 | 'Apitestuser', |
35 | 35 | 'Api Test User', |
36 | | - 'api_test_user@sample.com', |
| 36 | + 'api_test_user@example.com', |
37 | 37 | array() |
38 | 38 | ) |
39 | 39 | ); |
Index: trunk/phase3/tests/phpunit/includes/api/ApiTestUser.php |
— | — | @@ -8,7 +8,7 @@ |
9 | 9 | public $groups; |
10 | 10 | public $user; |
11 | 11 | |
12 | | - function __construct( $username, $realname = 'Real Name', $email = 'sample@sample.com', $groups = array() ) { |
| 12 | + function __construct( $username, $realname = 'Real Name', $email = 'sample@example.com', $groups = array() ) { |
13 | 13 | $this->username = $username; |
14 | 14 | $this->realname = $realname; |
15 | 15 | $this->email = $email; |