From 032d8781dcd0ba34efc6920e01668f9e8808cd41 Mon Sep 17 00:00:00 2001 From: Ashish Jain Date: Thu, 17 Dec 2020 20:26:12 +0100 Subject: [PATCH] Updated the click_security_loose test case for classDiagram and classDiagram-v2 for new callback function arg --- cypress/platform/class.html | 12 +- cypress/platform/click_security_loose.html | 23 ++- docs/classDiagram.md | 16 +- src/diagrams/class/classDb.js | 56 +++++-- src/diagrams/class/classDiagram.spec.js | 145 ++++++++++++++++++- src/diagrams/class/parser/classDiagram.jison | 58 +++++++- src/diagrams/class/svgDraw.js | 2 +- 7 files changed, 278 insertions(+), 34 deletions(-) diff --git a/cypress/platform/class.html b/cypress/platform/class.html index f3c0a43b1..a766639bd 100644 --- a/cypress/platform/class.html +++ b/cypress/platform/class.html @@ -35,7 +35,7 @@ +withdrawl(amount) int } cssClass "BankAccount" customCss - +
%%{init: {'theme': 'base', 'fontFamily': 'courier', 'themeVariables': { 'primaryColor': '#fff000'}}}%% @@ -47,7 +47,7 @@ +withdrawl(amount) int } cssClass "BankAccount" customCss - +
%%{init: {'theme': 'base', 'fontFamily': 'courier', 'themeVariables': { 'primaryColor': '#fff000'}}}%% @@ -69,8 +69,8 @@ int id test() } - callback Class01 "callback" "A Tooltip" - + callback Class01 "callback" "A Tooltip" +
flowchart TB @@ -79,7 +79,7 @@ classDef apa fill:#f9f,stroke:#333,stroke-width:4px; class a_a apa; click a_a "http://www.aftonbladet.se" "apa" - +
@@ -110,7 +110,7 @@ class Shape callback Shape "callbackFunction" "This is a tooltip for a callback" - +