Skip to content

Commit

Permalink
Adapted tests that were affected by Seaside re-escaping /
Browse files Browse the repository at this point in the history
  • Loading branch information
mtabacman committed Jul 1, 2024
1 parent 506e63a commit 73d1719
Show file tree
Hide file tree
Showing 164 changed files with 3,024 additions and 2,747 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
Class {
#name : #Bootstrap3CheckboxWebViewTest,
#superclass : #BinaryChoiceWebViewTest,
#category : #'Willow-Bootstrap-3-Tests-WebViews'
#name : 'Bootstrap3CheckboxWebViewTest',
#superclass : 'BinaryChoiceWebViewTest',
#category : 'Willow-Bootstrap-3-Tests-WebViews',
#package : 'Willow-Bootstrap-3-Tests',
#tag : 'WebViews'
}

{ #category : #'instance creation' }
{ #category : 'instance creation' }
Bootstrap3CheckboxWebViewTest >> newBinaryChoiceView [

^ Bootstrap3CheckboxWebView onModel: true offModel: false
]

{ #category : #'tests-configuring' }
{ #category : 'tests-configuring' }
Bootstrap3CheckboxWebViewTest >> testBeIdentifiable [

| html binaryChoiceView |
Expand All @@ -25,7 +27,7 @@ Bootstrap3CheckboxWebViewTest >> testBeIdentifiable [
'<div class="checkbox"><label><input id="checkbox-id1" checked name="2" type="checkbox"/><input name="3" type="hidden"/></label></div>'
]

{ #category : #'tests-rendering' }
{ #category : 'tests-rendering' }
Bootstrap3CheckboxWebViewTest >> testIdentifierOn [

| html checkbox |
Expand All @@ -43,7 +45,7 @@ Bootstrap3CheckboxWebViewTest >> testIdentifierOn [
'<div class="checkbox"><label><input id="checkbox-id1" checked name="3" type="checkbox"/><input name="4" type="hidden"/></label></div>'
]

{ #category : #'tests-configuring' }
{ #category : 'tests-configuring' }
Bootstrap3CheckboxWebViewTest >> testOn [

| html binaryChoiceView |
Expand All @@ -58,7 +60,7 @@ Bootstrap3CheckboxWebViewTest >> testOn [
'<div class="checkbox"><label><input checked name="1" id="input-id2" type="checkbox"/><input name="3" type="hidden"/></label></div><script type="text/javascript">$("#input-id2").click(function(event){$(this).prop("disabled",true)});</script>'
]

{ #category : #'tests-rendering' }
{ #category : 'tests-rendering' }
Bootstrap3CheckboxWebViewTest >> testRenderingAfterUpdatingModel [

| html checkbox |
Expand All @@ -78,7 +80,7 @@ Bootstrap3CheckboxWebViewTest >> testRenderingAfterUpdatingModel [
equals: '<div class="checkbox willow"><label><input class="willow" checked name="1" type="checkbox"/><input name="2" type="hidden"/></label></div>'
]

{ #category : #'tests-rendering' }
{ #category : 'tests-rendering' }
Bootstrap3CheckboxWebViewTest >> testRenderingWithLabel [

| html checkbox |
Expand All @@ -97,7 +99,7 @@ Bootstrap3CheckboxWebViewTest >> testRenderingWithLabel [
'<div class="checkbox willow"><label><input class="willow" checked name="1" type="checkbox"/><input name="2" type="hidden"/>Enable network</label></div>'
]

{ #category : #'tests-rendering' }
{ #category : 'tests-rendering' }
Bootstrap3CheckboxWebViewTest >> testWithNonBooleanModels [

| html checkbox |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@
A Bootstrap3ComponentSupplierTest is a test class for testing the behavior of Bootstrap3ComponentSupplier
"
Class {
#name : #Bootstrap3ComponentSupplierTest,
#superclass : #BootstrapComponentSupplierTest,
#category : #'Willow-Bootstrap-3-Tests-Frontend'
#name : 'Bootstrap3ComponentSupplierTest',
#superclass : 'BootstrapComponentSupplierTest',
#category : 'Willow-Bootstrap-3-Tests-Frontend',
#package : 'Willow-Bootstrap-3-Tests',
#tag : 'Frontend'
}

{ #category : #private }
{ #category : 'private' }
Bootstrap3ComponentSupplierTest >> supplierClass [

^ Bootstrap3ComponentSupplier
]

{ #category : #'tests-Supplying' }
{ #category : 'tests-Supplying' }
Bootstrap3ComponentSupplierTest >> testCheckboxLabeledOnModelOffModelApplying [

self
Expand All @@ -26,23 +28,23 @@ Bootstrap3ComponentSupplierTest >> testCheckboxLabeledOnModelOffModelApplying [
equals: '<div class="checkbox willow"><label><input class="willow" checked name="1" type="checkbox"/><input name="2" type="hidden"/>Labelization</label></div>'
]

{ #category : #'tests-Supplying' }
{ #category : 'tests-Supplying' }
Bootstrap3ComponentSupplierTest >> testCheckboxUnlabeledOnModelOffModelApplying [

self
assertRenderingOf: [ :supplier | supplier checkboxUnlabeledOnModel: 3 offModel: 'the off' applying: [ :checkbox | checkbox addClass willow ] ]
equals: '<div class="checkbox willow"><label><input class="willow" checked name="1" type="checkbox"/><input name="2" type="hidden"/></label></div>'
]

{ #category : #'tests-Supplying' }
{ #category : 'tests-Supplying' }
Bootstrap3ComponentSupplierTest >> testDropdownListApplying [

self
assertRenderingOf: [ :supplier | supplier dropdownListApplying: [ :dropdownList | dropdownList setData: 'size' to: 10 ] ]
equals: '<select name="1" class="form-control selectpicker" data-size="10" id="id2"></select><script type="text/javascript">$("#id2").selectpicker("render");</script>'
]

{ #category : #'tests-Supplying' }
{ #category : 'tests-Supplying' }
Bootstrap3ComponentSupplierTest >> testRadioRenderingWithApplyingToLabelApplyingToInput [

| supplier radio html |
Expand All @@ -64,7 +66,7 @@ Bootstrap3ComponentSupplierTest >> testRadioRenderingWithApplyingToLabelApplying
'<label class="willow"><input name="1" id="radio-button-id2" class="willow" value="1" type="radio"/>F</label><label class="willow"><input name="1" id="radio-button-id3" class="willow" value="2" type="radio"/>H</label>'
]

{ #category : #'tests-Processing' }
{ #category : 'tests-Processing' }
Bootstrap3ComponentSupplierTest >> testUpdateRoot [

| html |
Expand All @@ -79,7 +81,7 @@ Bootstrap3ComponentSupplierTest >> testUpdateRoot [
equals: '<!DOCTYPE html><html><head><title></title><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous"/><link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap-theme.min.css" integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous"/><script type="text/javascript" src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.18/css/bootstrap-select.min.css" integrity="sha512-ARJR74swou2y0Q2V9k0GbzQ/5vJ2RBSoCWokg4zkfM29Fb3vZEQyv0iWBMW/yvKgyHSR/7D64pFMmU8nYmbRkg==" crossorigin="anonymous"/><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.18/js/bootstrap-select.min.js" integrity="sha512-yDlE7vpGDP7o2eftkCiPZ+yuUyEcaBwoJoIhdXv71KZWugFqEphIS3PU60lEkFaz8RxaVsMpSvQxMBaKVwA5xg==" crossorigin="anonymous"></script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.18/js/i18n/defaults-en_US.min.js"></script><link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.10.0/css/bootstrap-datepicker3.min.css" integrity="sha512-aQb0/doxDGrw/OC7drNaJQkIKFu6eSWnVMAwPN64p6sZKeJ4QCDYL42Rumw2ZtL8DB9f66q4CnLIUnAw28dEbg==" crossorigin="anonymous"/><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.10.0/js/bootstrap-datepicker.min.js" integrity="sha512-LsnSViqQyaXpD4mBBdRYeP6sRwJiJveh2ZIbW41EBrNmKxgr/LFZIiWT6yr+nycvhvauz8c2nYMhrP80YhG7Cw==" crossorigin="anonymous"></script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-3-typeahead/4.0.2/bootstrap3-typeahead.min.js"></script><link rel="stylesheet" type="text/css" href="/files/willow-bootstrap-8.0.0/css/willow-bootstrap.css"/><script type="text/javascript" src="/files/willow-bootstrap-8.0.0/js/willow-bootstrap.js"></script></head><body onload="onLoad()"><script type="text/javascript">function onLoad(){};</script></body></html>'
]

{ #category : #'tests-Processing' }
{ #category : 'tests-Processing' }
Bootstrap3ComponentSupplierTest >> testUpdateRootWithSelfHostedLibraries [

| html |
Expand All @@ -101,7 +103,7 @@ Bootstrap3ComponentSupplierTest >> testUpdateRootWithSelfHostedLibraries [
'<!DOCTYPE html><html><head><title></title><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><link rel="stylesheet" type="text/css" href="/files/bootstrap-3.4.1/css/bootstrap.css"/><link rel="stylesheet" type="text/css" href="/files/bootstrap-3.4.1/css/bootstrap-theme.css"/><script type="text/javascript" src="/files/bootstrap-3.4.1/js/bootstrap.js"></script><link rel="stylesheet" type="text/css" href="/files/bootstrap-select-1.13.18/css/bootstrap-select.css"/><script type="text/javascript" src="/files/bootstrap-select-1.13.18/js/bootstrap-select.js"></script><script type="text/javascript" src="/files/bootstrap-select-1.13.18/js/i18n/defaults-en_US.js"></script><link rel="stylesheet" type="text/css" href="/files/bootstrap-datepicker-1.10.0/css/bootstrap-datepicker3.css"/><script type="text/javascript" src="/files/bootstrap-datepicker-1.10.0/js/bootstrap-datepicker.js"></script><script type="text/javascript" src="/files/bootstrap-typeahead-4.0.2/bootstrap3-typeahead.js"></script><link rel="stylesheet" type="text/css" href="/files/willow-bootstrap-8.0.0/css/willow-bootstrap.css"/><script type="text/javascript" src="/files/willow-bootstrap-8.0.0/js/willow-bootstrap.js"></script></head><body onload="onLoad()"><script type="text/javascript">function onLoad(){};</script></body></html>'
]

{ #category : #'tests-Processing' }
{ #category : 'tests-Processing' }
Bootstrap3ComponentSupplierTest >> testUpdateRootWithSelfHostedLibrariesAndLanguageSupport [

| html |
Expand Down
20 changes: 11 additions & 9 deletions source/Willow-Bootstrap-3-Tests/Bootstrap3ConstantsTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,23 @@
A BootstrapConstantsTest is a test class for testing the behavior of BootstrapConstants
"
Class {
#name : #Bootstrap3ConstantsTest,
#superclass : #TestCase,
#name : 'Bootstrap3ConstantsTest',
#superclass : 'TestCase',
#pools : [
'Willow'
],
#category : #'Willow-Bootstrap-3-Tests-Frontend'
#category : 'Willow-Bootstrap-3-Tests-Frontend',
#package : 'Willow-Bootstrap-3-Tests',
#tag : 'Frontend'
}

{ #category : #private }
{ #category : 'private' }
Bootstrap3ConstantsTest >> assertConstantAt: aSymbol equals: anExpectedValue [

self assert: Constants >> #bootstrap >> aSymbol equals: anExpectedValue
]

{ #category : #tests }
{ #category : 'tests' }
Bootstrap3ConstantsTest >> testDataAPI [

self
Expand All @@ -33,7 +35,7 @@ Bootstrap3ConstantsTest >> testDataAPI [
assertConstantAt: #buttons equals: 'buttons'
]

{ #category : #tests }
{ #category : 'tests' }
Bootstrap3ConstantsTest >> testDatepickerDataAPI [

self
Expand All @@ -46,7 +48,7 @@ Bootstrap3ConstantsTest >> testDatepickerDataAPI [
assertConstantAt: #todayHighlight equals: 'date-today-highlight'
]

{ #category : #tests }
{ #category : 'tests' }
Bootstrap3ConstantsTest >> testDatepickerStartWeekDays [

self
Expand All @@ -59,7 +61,7 @@ Bootstrap3ConstantsTest >> testDatepickerStartWeekDays [
assertConstantAt: #sunday equals: 0
]

{ #category : #tests }
{ #category : 'tests' }
Bootstrap3ConstantsTest >> testDatepickerViewModes [

self
Expand All @@ -79,7 +81,7 @@ Bootstrap3ConstantsTest >> testDatepickerViewModes [
self assertConstantAt: #linked equals: 'linked'
]

{ #category : #tests }
{ #category : 'tests' }
Bootstrap3ConstantsTest >> testSelectDataAPI [

self
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,32 @@
A BootstrapDatePickerWebViewTest is a test class for testing the behavior of BootstrapDatePickerWebView
"
Class {
#name : #Bootstrap3DatePickerWebViewTest,
#superclass : #BWRenderingTest,
#category : #'Willow-Bootstrap-3-Tests-WebViews'
#name : 'Bootstrap3DatePickerWebViewTest',
#superclass : 'BWRenderingTest',
#category : 'Willow-Bootstrap-3-Tests-WebViews',
#package : 'Willow-Bootstrap-3-Tests',
#tag : 'WebViews'
}

{ #category : #accessing }
{ #category : 'accessing' }
Bootstrap3DatePickerWebViewTest >> componentSupplier [

^ Bootstrap3ComponentSupplier online
]

{ #category : #accessing }
{ #category : 'accessing' }
Bootstrap3DatePickerWebViewTest >> createHandlers [

^ Array with: self
]

{ #category : #accessing }
{ #category : 'accessing' }
Bootstrap3DatePickerWebViewTest >> isSession [

^ true
]

{ #category : #'tests-rendering' }
{ #category : 'tests-rendering' }
Bootstrap3DatePickerWebViewTest >> testRenderContentOn [

| html |
Expand All @@ -38,7 +40,7 @@ Bootstrap3DatePickerWebViewTest >> testRenderContentOn [
'<div class="input-group date" data-provide="datepicker"><input value="" name="1" type="text"/><div class="input-group-addon"><small><span class="glyphicon glyphicon-triangle-bottom"></span></small></div></div>'
]

{ #category : #'tests-rendering' }
{ #category : 'tests-rendering' }
Bootstrap3DatePickerWebViewTest >> testRenderContentOnWithCommands [

| html |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
A Bootstrap3DeploymentMetadataLibraryTest is a test class for testing the behavior of Bootstrap3DeploymentMetadataLibrary
"
Class {
#name : #Bootstrap3DeploymentMetadataLibraryTest,
#superclass : #BWRenderingTest,
#category : #'Willow-Bootstrap-3-Tests-Libraries'
#name : 'Bootstrap3DeploymentMetadataLibraryTest',
#superclass : 'BWRenderingTest',
#category : 'Willow-Bootstrap-3-Tests-Libraries',
#package : 'Willow-Bootstrap-3-Tests',
#tag : 'Libraries'
}

{ #category : #tests }
{ #category : 'tests' }
Bootstrap3DeploymentMetadataLibraryTest >> testDeployFiles [

self
Expand All @@ -26,15 +28,15 @@ Bootstrap3DeploymentMetadataLibraryTest >> testDeployFiles [
('bootstrap-3.4.1/js/bootstrap.min.js' -> 'c958648ed73daa1323aaf9876d2fe34e6c154b7e')}
]

{ #category : #tests }
{ #category : 'tests' }
Bootstrap3DeploymentMetadataLibraryTest >> testIsForDevelopment [

self
assert: Bootstrap3DeploymentMetadataLibrary isForDeployment;
deny: Bootstrap3DeploymentMetadataLibrary isForDevelopment
]

{ #category : #tests }
{ #category : 'tests' }
Bootstrap3DeploymentMetadataLibraryTest >> testUpdateRoot [

| html |
Expand All @@ -50,7 +52,7 @@ Bootstrap3DeploymentMetadataLibraryTest >> testUpdateRoot [
'<html><head><title></title><link rel="stylesheet" type="text/css" href="/files/bootstrap-3.4.1/css/bootstrap.min.css"/><link rel="stylesheet" type="text/css" href="/files/bootstrap-3.4.1/css/bootstrap-theme.min.css"/><script type="text/javascript" src="/files/bootstrap-3.4.1/js/bootstrap.min.js"></script></head><body onload="onLoad()"><script type="text/javascript">function onLoad(){};</script></body></html>'
]

{ #category : #tests }
{ #category : 'tests' }
Bootstrap3DeploymentMetadataLibraryTest >> testUpdateRootWithoutOptionalTheme [

| html |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
A Bootstrap3DevelopmentMetadataLibraryTest is a test class for testing the behavior of Bootstrap3DevelopmentMetadataLibrary
"
Class {
#name : #Bootstrap3DevelopmentMetadataLibraryTest,
#superclass : #BWRenderingTest,
#category : #'Willow-Bootstrap-3-Tests-Libraries'
#name : 'Bootstrap3DevelopmentMetadataLibraryTest',
#superclass : 'BWRenderingTest',
#category : 'Willow-Bootstrap-3-Tests-Libraries',
#package : 'Willow-Bootstrap-3-Tests',
#tag : 'Libraries'
}

{ #category : #tests }
{ #category : 'tests' }
Bootstrap3DevelopmentMetadataLibraryTest >> testDeployFiles [

self
Expand All @@ -26,23 +28,23 @@ Bootstrap3DevelopmentMetadataLibraryTest >> testDeployFiles [
('bootstrap-3.4.1/js/bootstrap.js' -> '6b58c6d4f074119651b9fb8198ff87c7388fb4ca')}
]

{ #category : #tests }
{ #category : 'tests' }
Bootstrap3DevelopmentMetadataLibraryTest >> testHandlesFolder [

self
assert: (Bootstrap3DevelopmentMetadataLibrary handlesFolder: Bootstrap3DevelopmentMetadataLibrary folderName);
deny: (Bootstrap3DevelopmentMetadataLibrary handlesFolder: #files)
]

{ #category : #tests }
{ #category : 'tests' }
Bootstrap3DevelopmentMetadataLibraryTest >> testIsForDevelopment [

self
assert: Bootstrap3DevelopmentMetadataLibrary isForDevelopment;
deny: Bootstrap3DevelopmentMetadataLibrary isForDeployment
]

{ #category : #tests }
{ #category : 'tests' }
Bootstrap3DevelopmentMetadataLibraryTest >> testUpdateRoot [

| html |
Expand All @@ -58,7 +60,7 @@ Bootstrap3DevelopmentMetadataLibraryTest >> testUpdateRoot [
'<html><head><title></title><link rel="stylesheet" type="text/css" href="/files/bootstrap-3.4.1/css/bootstrap.css"/><link rel="stylesheet" type="text/css" href="/files/bootstrap-3.4.1/css/bootstrap-theme.css"/><script type="text/javascript" src="/files/bootstrap-3.4.1/js/bootstrap.js"></script></head><body onload="onLoad()"><script type="text/javascript">function onLoad(){};</script></body></html>'
]

{ #category : #tests }
{ #category : 'tests' }
Bootstrap3DevelopmentMetadataLibraryTest >> testUpdateRootWithoutOptionalTheme [

| html |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
Class {
#name : #Bootstrap3DialogClosingCommandTest,
#superclass : #BootstrapDialogClosingCommandTest,
#category : #'Willow-Bootstrap-3-Tests-WebInteraction'
#name : 'Bootstrap3DialogClosingCommandTest',
#superclass : 'BootstrapDialogClosingCommandTest',
#category : 'Willow-Bootstrap-3-Tests-WebInteraction',
#package : 'Willow-Bootstrap-3-Tests',
#tag : 'WebInteraction'
}

{ #category : #accessing }
{ #category : 'accessing' }
Bootstrap3DialogClosingCommandTest >> componentSupplier [

^ Bootstrap3ComponentSupplier online
Expand Down
Loading

0 comments on commit 73d1719

Please sign in to comment.