Changeset 44740
- Timestamp:
- 02/14/2019 12:06:39 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Gruntfile.js
r44651 r44740 172 172 [ WORKING_DIR + 'wp-includes/js/jquery/jquery-migrate.min.js' ]: [ './node_modules/jquery-migrate/dist/jquery-migrate.min.js' ], 173 173 [ WORKING_DIR + 'wp-includes/js/jquery/jquery.form.js' ]: [ './node_modules/jquery-form/src/jquery.form.js' ], 174 [ WORKING_DIR + 'wp-includes/js/jquery/jquery.form.min.js' ]: [ './node_modules/jquery-form/dist/jquery.form.min.js' ],175 174 [ WORKING_DIR + 'wp-includes/js/jquery/jquery.js' ]: [ './node_modules/jquery/dist/jquery.min.js' ], 176 175 [ WORKING_DIR + 'wp-includes/js/masonry.min.js' ]: [ './node_modules/masonry-layout/dist/masonry.pkgd.min.js' ], … … 720 719 src: WORKING_DIR + 'wp-includes/js/imgareaselect/jquery.imgareaselect.js', 721 720 dest: WORKING_DIR + 'wp-includes/js/imgareaselect/jquery.imgareaselect.min.js' 721 }, 722 jqueryform: { 723 src: WORKING_DIR + 'wp-includes/js/jquery/jquery.form.js', 724 dest: WORKING_DIR + 'wp-includes/js/jquery/jquery.form.min.js' 722 725 }, 723 726 dynamic: { … … 1194 1197 'jshint:corejs', 1195 1198 'uglify:imgareaselect', 1199 'uglify:jqueryform', 1196 1200 'qunit:compiled' 1197 1201 ] ); … … 1333 1337 'uglify:embed', 1334 1338 'uglify:jqueryui', 1335 'uglify:imgareaselect' 1339 'uglify:imgareaselect', 1340 'uglify:jqueryform' 1336 1341 ] ); 1337 1342 -
trunk/tests/phpunit/tests/dependencies/jquery.php
r42343 r44740 84 84 85 85 /** 86 * @ticket 2499487 */88 function test_exclusion_of_sourcemaps() {89 $contents = trim( file_get_contents( ABSPATH . WPINC . '/js/jquery/jquery.js' ) );90 $this->assertFalse( strpos( $contents, 'sourceMappingURL' ), 'Presence of sourceMappingURL' );91 }92 93 /**94 86 * @ticket 28404 95 87 */ -
trunk/tests/phpunit/tests/dependencies/scripts.php
r44403 r44740 1342 1342 ); 1343 1343 } 1344 1345 function test_no_source_mapping() { 1346 $all_files = new RecursiveIteratorIterator( new RecursiveDirectoryIterator( dirname( ABSPATH ) . '/build/' ) ); 1347 $js_files = new RegexIterator( $all_files, '/\.js$/' ); 1348 foreach( $js_files as $js_file ) { 1349 $contents = trim( file_get_contents( $js_file ) ); 1350 1351 // We allow data: URLs. 1352 $found = preg_match( '/sourceMappingURL=((?!data:).)/', $contents ); 1353 $this->assertSame( $found, 0, "sourceMappingURL found in $js_file" ); 1354 } 1355 } 1344 1356 }
Note: See TracChangeset
for help on using the changeset viewer.