-
Notifications
You must be signed in to change notification settings - Fork 8
add arduino_functions block restriction and improvement of board-spec… #453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Conversation
Tests
Github Test Reporter by CTRF 💚 |
Tests
Github Test Reporter by CTRF 💚 |
Tests
Github Test Reporter by CTRF 💚 |
– Implementation of detailed backpack configuration with custom options and event handlers. |
Tests
Github Test Reporter by CTRF 💚 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ein paar kleinere Änderungen bitte noch machen, aber sieht ansonsten gut aus und funktioniert 👍
cypress/e2e/code-editor.cy.js
Outdated
cy.get("button").contains("Reset code").click(); | ||
cy.get("button").contains("Zurücksetzen").should("exist"); | ||
cy.get("button").contains(/Reset code|Code zurücksetzen/).click(); | ||
cy.get("button").contains(/Reset|Zurücksetzen/).should("exist"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Warum diese Änderung?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nach meinem Gewissen war es sinnvoll, statt harter String Regex-Matches zu benutzen.
Denn mit harten Strings wäre der Test bei einer minimalen Veränderung durchgefallen. Somit wird zum Beispiel der Fall abgedeckt, wenn der Button nur Reset woanders im Projekt heißen würde.
|
||
this.isEditable = function() { | ||
return false; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was hält dich davon ab einfach this.isEditable = false
zu schreiben? Warum brauch es diesen Funktionsaufruf?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weil ich es für sinnvoll hielt, isEditable als Methode zu schreiben wegen des dynamischen Verhaltens bzw. der Eigenschaft, statt statisch. Warum wäre statisches Verhalten besser?
src/components/Blockly/msg/de_old.js
Outdated
Blockly.Msg.REMOVE_FROM_BACKPACK = "Entfernen aus Rucksack"; | ||
Blockly.Msg.COPY_TO_BACKPACK = "Kopieren in Rucksack"; | ||
Blockly.Msg.COPY_ALL_TO_BACKPACK = "Alle Kopieren in Rucksack"; | ||
Blockly.Msg.PASTE_ALL_FROM_BACKPACK = "Alle Einfügen aus Rucksack"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Die Texte müssen nicht in die ..old.js
Dateien geschrieben werden ;) (ich weiß hatte ich dir mal anders gesagt, aber vergiss das)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wip
…ific instance limits
- Test now searches for both possible reset button texts - Supports both English ("Reset code") and German ("Code zurücksetzen") translations - Uses regular expressions for flexible text searches - Improves the robustness of the test across different language settings
- Test now searches for both possible reset button texts - Supports both English ("Reset code") and German ("Code zurücksetzen") translations - Uses regular expressions for flexible text searches - Improves the robustness of the test across different language settings
5f68eb8
to
dab5f29
Compare
Tests
Github Test Reporter by CTRF 💚 |
…Komponente eine funktion erwartet.
Tests
Github Test Reporter by CTRF 💚 |
…ific instance limits
Adds security measures for the arduino_functions block:
These changes ensure that the arduino_functions block, which contains the setup() and loop() functions, can only exist once in the workspace and cannot be accidentally tampered with.