kohinsky46 / js-test-driver

Automatically exported from code.google.com/p/js-test-driver
0 stars 0 forks source link

loading file not from load config #450

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run the attached config
2. The test is passed
3. But got error loading file: ./closure-library/closure/goog/base.js:455: 
Uncaught Error: goog.require could not find: goog.dom.pattern.AbstractPattern

What is the expected output? What do you see instead?

should not load nodetype.js from goog/dom/pattern/

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by kyaw...@yathit.com on 26 May 2014 at 11:37

GoogleCodeExporter commented 9 years ago
server: http://localhost:4224

load:
  - ../closure-library/closure/goog/base.js
  - ../closure-library/closure/goog/debug/error.js
  - ../closure-library/closure/goog/dom/nodetype.js
  - ../closure-library/closure/goog/string/string.js
  - ../closure-library/closure/goog/asserts/asserts.js

test:
  - test/base/AssertJstest.js

timeout: 90

Original comment by kyaw...@yathit.com on 26 May 2014 at 11:38

GoogleCodeExporter commented 9 years ago

goog.provide('ydn.db.AssertJstest');
goog.require('goog.asserts');

ydn.db.AssertJstest = TestCase('ydn.db.AssertJstest');

ydn.db.AssertJstest.prototype.setUp = function() {

};

ydn.db.AssertJstest.prototype.tearDown = function() {

};

ydn.db.AssertJstest.prototype.testAssert = function() {
  goog.asserts.assert(1, 'asserted');
  assertTrue('done', true);
};

Original comment by kyaw...@yathit.com on 26 May 2014 at 11:38

GoogleCodeExporter commented 9 years ago
Since attach file is not allowed, I have posted as commend above.

Original comment by kyaw...@yathit.com on 26 May 2014 at 11:38