Export to GitHub

js-test-driver - issue #450

loading file not from load config


Posted on May 26, 2014 by Happy Dog

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.

Comment #1

Posted on May 26, 2014 by Happy Dog

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

Comment #2

Posted on May 26, 2014 by Happy Dog

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); };

Comment #3

Posted on May 26, 2014 by Happy Dog

Since attach file is not allowed, I have posted as commend above.

Status: New

Labels:
Type-Defect Priority-Medium