You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by zh...@apache.org on 2016/08/25 00:33:33 UTC
ambari git commit: AMBARI-18257 graphView test case failed in Ambari
Web Build on trunk (zhewang)
Repository: ambari
Updated Branches:
refs/heads/trunk 11ecbdb2f -> 4ffb4929a
AMBARI-18257 graphView test case failed in Ambari Web Build on trunk (zhewang)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/4ffb4929
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4ffb4929
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4ffb4929
Branch: refs/heads/trunk
Commit: 4ffb4929a2bb0b3260da2babcab815620090e076
Parents: 11ecbdb
Author: Zhe (Joe) Wang <zh...@apache.org>
Authored: Wed Aug 24 17:32:22 2016 -0700
Committer: Zhe (Joe) Wang <zh...@apache.org>
Committed: Wed Aug 24 17:32:22 2016 -0700
----------------------------------------------------------------------
ambari-web/test/views/common/widget/graph_widget_view_test.js | 7 -------
1 file changed, 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/4ffb4929/ambari-web/test/views/common/widget/graph_widget_view_test.js
----------------------------------------------------------------------
diff --git a/ambari-web/test/views/common/widget/graph_widget_view_test.js b/ambari-web/test/views/common/widget/graph_widget_view_test.js
index 70fcafb..e19feaf 100644
--- a/ambari-web/test/views/common/widget/graph_widget_view_test.js
+++ b/ambari-web/test/views/common/widget/graph_widget_view_test.js
@@ -782,24 +782,17 @@ describe('App.GraphWidgetView', function () {
describe("#didInsertElement()", function () {
beforeEach(function() {
- sinon.stub(graphView, 'setYAxisFormatter');
sinon.stub(graphView, 'loadData');
sinon.stub(Em.run, 'next', Em.clb);
sinon.stub(App, 'tooltip');
});
afterEach(function() {
- graphView.setYAxisFormatter.restore();
graphView.loadData.restore();
Em.run.next.restore();
App.tooltip.restore();
});
- it("setYAxisFormatter should be called", function() {
- graphView.didInsertElement();
- expect(graphView.setYAxisFormatter.calledOnce).to.be.true;
- });
-
it("loadData should be called", function() {
graphView.didInsertElement();
expect(graphView.loadData.calledOnce).to.be.true;