Fixed "stop spec on expectation failure" checkbox in standalone
Fixes [#178248968].
This commit is contained in:
@@ -565,7 +565,7 @@ jasmineRequire.HtmlReporter = function(j$) {
|
|||||||
);
|
);
|
||||||
throwCheckbox.checked = config.oneFailurePerSpec;
|
throwCheckbox.checked = config.oneFailurePerSpec;
|
||||||
throwCheckbox.onclick = function() {
|
throwCheckbox.onclick = function() {
|
||||||
navigateWithNewParam('throwFailures', !config.oneFailurePerSpec);
|
navigateWithNewParam('oneFailurePerSpec', !config.oneFailurePerSpec);
|
||||||
};
|
};
|
||||||
|
|
||||||
var randomCheckbox = optionsMenuDom.querySelector(
|
var randomCheckbox = optionsMenuDom.querySelector(
|
||||||
|
|||||||
@@ -802,7 +802,7 @@ describe('HtmlReporter', function() {
|
|||||||
var throwingExpectationsUI = container.querySelector('.jasmine-throw');
|
var throwingExpectationsUI = container.querySelector('.jasmine-throw');
|
||||||
throwingExpectationsUI.click();
|
throwingExpectationsUI.click();
|
||||||
|
|
||||||
expect(navigateHandler).toHaveBeenCalledWith('throwFailures', true);
|
expect(navigateHandler).toHaveBeenCalledWith('oneFailurePerSpec', true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should navigate and change the setting to off', function() {
|
it('should navigate and change the setting to off', function() {
|
||||||
@@ -831,7 +831,10 @@ describe('HtmlReporter', function() {
|
|||||||
var throwingExpectationsUI = container.querySelector('.jasmine-throw');
|
var throwingExpectationsUI = container.querySelector('.jasmine-throw');
|
||||||
throwingExpectationsUI.click();
|
throwingExpectationsUI.click();
|
||||||
|
|
||||||
expect(navigateHandler).toHaveBeenCalledWith('throwFailures', false);
|
expect(navigateHandler).toHaveBeenCalledWith(
|
||||||
|
'oneFailurePerSpec',
|
||||||
|
false
|
||||||
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
describe('UI for hiding disabled specs', function() {
|
describe('UI for hiding disabled specs', function() {
|
||||||
|
|||||||
@@ -534,7 +534,7 @@ jasmineRequire.HtmlReporter = function(j$) {
|
|||||||
);
|
);
|
||||||
throwCheckbox.checked = config.oneFailurePerSpec;
|
throwCheckbox.checked = config.oneFailurePerSpec;
|
||||||
throwCheckbox.onclick = function() {
|
throwCheckbox.onclick = function() {
|
||||||
navigateWithNewParam('throwFailures', !config.oneFailurePerSpec);
|
navigateWithNewParam('oneFailurePerSpec', !config.oneFailurePerSpec);
|
||||||
};
|
};
|
||||||
|
|
||||||
var randomCheckbox = optionsMenuDom.querySelector(
|
var randomCheckbox = optionsMenuDom.querySelector(
|
||||||
|
|||||||
Reference in New Issue
Block a user