Add test for the new styling object

This commit is contained in:
Robin maenhaut
2017-01-23 09:51:05 +01:00
parent 4ff4f8d4fc
commit 42636ca79f
2 changed files with 20 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
// Type definitions for jquery.pnotify 3.x
// Project: https://github.com/sciactive/pnotify
// Definitions by: David Sichau <https://github.com/DavidSichau>
// Definitions by: David Sichau <https://github.com/DavidSichau>, Robin Maenhaut <https://github.com/FUNExtreme>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="jquery"/>

View File

@@ -243,5 +243,24 @@ function test_pnotify() {
animation: 'show'
});
new PNotify({
title: 'Custom styling',
text: 'Test all custom styling properties',
styling: {
container: "alert",
notice: "alert-warning",
notice_icon: "fa fa-exclamation-circle",
info: "alert-info",
info_icon: "fa fa-info",
success: "alert-success",
success_icon: "fa fa-check",
error: "alert-danger",
error_icon: "fa fa-warning",
closer: "fa fa-times",
pin_up: "fa fa-pause",
pin_down: "fa fa-play"
}
});
PNotify.removeAll();
}