git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 4.0.1 - Released 05/18/2011
[extjs.git]
/
src
/
core
/
test
/
unit
/
spec
/
lang
/
Error.js
diff --git
a/src/core/test/unit/spec/lang/Error.js
b/src/core/test/unit/spec/lang/Error.js
index
47578a3
..
3c14c6d
100644
(file)
--- a/
src/core/test/unit/spec/lang/Error.js
+++ b/
src/core/test/unit/spec/lang/Error.js
@@
-1,6
+1,5
@@
describe("Ext.Error", function() {
describe("Ext.Error", function() {
- var global,
- consoleWarningMsg = 'An uncaught error was raised with the following data:';
+ var global;
beforeEach(function() {
global = Ext.global;
beforeEach(function() {
global = Ext.global;
@@
-11,6
+10,9
@@
describe("Ext.Error", function() {
dir: function(s) {
return s;
},
dir: function(s) {
return s;
},
+ error: function(s) {
+ return s;
+ },
warn: function(s) {
return s;
}
warn: function(s) {
return s;
}
@@
-35,13
+37,13
@@
describe("Ext.Error", function() {
}
});
}
});
- it("should log a
warning
to the console", function() {
- spyOn(Ext.global.console, '
warn
');
+ it("should log a
n error
to the console", function() {
+ spyOn(Ext.global.console, '
error
');
try {
Ext.Error.raise('foo');
}
catch (err) {}
try {
Ext.Error.raise('foo');
}
catch (err) {}
- expect(Ext.global.console.
warn).toHaveBeenCalledWith(consoleWarningMsg
);
+ expect(Ext.global.console.
error).toHaveBeenCalledWith('foo'
);
});
it("should log the error object to the console", function() {
});
it("should log the error object to the console", function() {
@@
-99,12
+101,12
@@
describe("Ext.Error", function() {
});
it("should log a warning to the console", function() {
});
it("should log a warning to the console", function() {
- spyOn(Ext.global.console, '
warn
');
+ spyOn(Ext.global.console, '
error
');
try {
Ext.Error.raise({msg: 'foo'});
}
catch (err) {}
try {
Ext.Error.raise({msg: 'foo'});
}
catch (err) {}
- expect(Ext.global.console.
warn).toHaveBeenCalledWith(consoleWarningMsg
);
+ expect(Ext.global.console.
error).toHaveBeenCalledWith('foo'
);
});
it("should log the error object to the console", function() {
});
it("should log the error object to the console", function() {