Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed unit tests

  • Loading branch information...
commit cbc32d3813d3530839d721a906ad4c7467a22a0c 1 parent a97a69d
Drew Folta authored
2  tests/fixtures/conventions/lang/testing.js
... ... @@ -1,3 +1,3 @@
1   -YUI.add('lang/testing_de', function(Y, NAME) {
  1 +YUI.add('lang/testing', function(Y, NAME) {
2 2 // just needs to exist
3 3 });
48 tests/unit/lib/app/addons/rs/test-yui.server.js
@@ -276,24 +276,24 @@ YUI().use(
276 276 source = makeSource(fixtures, 'bundle', 'lang', 'testing.js', true);
277 277 res = store.parseResourceVersion(source, 'yui-lang', undefined, 'testing');
278 278 A.isNotUndefined(res);
279   - cmp(res.source, source);
280   - A.areSame('yui-lang', res.type);
281   - A.areSame('common', res.affinity);
282   - A.areSame('*', res.selector);
283   - A.areSame('', res.name);
284   - A.areSame('yui-lang--', res.id);
285   - A.areSame('testing', res.mojit);
  279 + cmp(res.source, source, 'testing.js source');
  280 + A.areSame('yui-lang', res.type, 'testing.js type');
  281 + A.areSame('common', res.affinity, 'testing.js affinity');
  282 + A.areSame('*', res.selector, 'testing.js selector');
  283 + A.areSame('lang/testing', res.name, 'testing.js name');
  284 + A.areSame('yui-lang--lang/testing', res.id, 'testing.js id');
  285 + A.areSame('testing', res.mojit, 'testing.js mojit');
286 286
287 287 source = makeSource(fixtures, 'bundle', 'lang', 'testing_de.js', true);
288 288 res = store.parseResourceVersion(source, 'yui-lang', undefined, 'testing');
289 289 A.isNotUndefined(res);
290   - cmp(res.source, source);
291   - A.areSame('yui-lang', res.type);
292   - A.areSame('common', res.affinity);
293   - A.areSame('*', res.selector);
294   - A.areSame('de', res.name);
295   - A.areSame('yui-lang--de', res.id);
296   - A.areSame('testing', res.mojit);
  290 + cmp(res.source, source, 'testing_de.js source');
  291 + A.areSame('yui-lang', res.type, 'testing_de.js type');
  292 + A.areSame('common', res.affinity, 'testing_de.js affinity');
  293 + A.areSame('*', res.selector, 'testing_de.js selector');
  294 + A.areSame('lang/testing_de', res.name, 'testing_de.js name');
  295 + A.areSame('yui-lang--lang/testing_de', res.id, 'testing_de.js id');
  296 + A.areSame('testing', res.mojit, 'testing_de.js mojit');
297 297
298 298 source = makeSource(fixtures, 'bundle', 'lang', 'testing_en-US.js', true);
299 299 res = store.parseResourceVersion(source, 'yui-lang', undefined, 'testing');
@@ -302,8 +302,8 @@ YUI().use(
302 302 A.areSame('yui-lang', res.type);
303 303 A.areSame('common', res.affinity);
304 304 A.areSame('*', res.selector);
305   - A.areSame('en-US', res.name);
306   - A.areSame('yui-lang--en-US', res.id);
  305 + A.areSame('lang/testing_en-US', res.name);
  306 + A.areSame('yui-lang--lang/testing_en-US', res.id);
307 307 A.areSame('testing', res.mojit);
308 308 },
309 309
@@ -404,40 +404,40 @@ YUI().use(
404 404 case 'spec--x':
405 405 case 'view--x':
406 406 break;
407   - case 'yui-lang--':
  407 + case 'yui-lang--lang/testing':
408 408 A.areSame(pkg, res.source.pkg);
409 409 A.areSame('yui-lang', res.type);
410   - A.areSame('', res.name);
  410 + A.areSame('lang/testing', res.name);
411 411 A.areSame('*', res.selector);
412 412 A.areSame('common', res.affinity);
413 413 A.areSame('.', res.source.fs.subDir);
414 414 A.areSame('testing', res.source.fs.basename);
415 415 A.areSame('.js', res.source.fs.ext);
416 416 break;
417   - case 'yui-lang--de':
  417 + case 'yui-lang--lang/testing_de':
418 418 A.areSame(pkg, res.source.pkg);
419 419 A.areSame('yui-lang', res.type);
420   - A.areSame('de', res.name);
  420 + A.areSame('lang/testing_de', res.name);
421 421 A.areSame('*', res.selector);
422 422 A.areSame('common', res.affinity);
423 423 A.areSame('.', res.source.fs.subDir);
424 424 A.areSame('testing_de', res.source.fs.basename);
425 425 A.areSame('.js', res.source.fs.ext);
426 426 break;
427   - case 'yui-lang--en':
  427 + case 'yui-lang--lang/testing_en':
428 428 A.areSame(pkg, res.source.pkg);
429 429 A.areSame('yui-lang', res.type);
430   - A.areSame('en', res.name);
  430 + A.areSame('lang/testing_en', res.name);
431 431 A.areSame('*', res.selector);
432 432 A.areSame('common', res.affinity);
433 433 A.areSame('.', res.source.fs.subDir);
434 434 A.areSame('testing_en', res.source.fs.basename);
435 435 A.areSame('.js', res.source.fs.ext);
436 436 break;
437   - case 'yui-lang--en-US':
  437 + case 'yui-lang--lang/testing_en-US':
438 438 A.areSame(pkg, res.source.pkg);
439 439 A.areSame('yui-lang', res.type);
440   - A.areSame('en-US', res.name);
  440 + A.areSame('lang/testing_en-US', res.name);
441 441 A.areSame('*', res.selector);
442 442 A.areSame('common', res.affinity);
443 443 A.areSame('.', res.source.fs.subDir);

0 comments on commit cbc32d3

Please sign in to comment.
Something went wrong with that request. Please try again.