Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
bd64cd26
Commit
bd64cd26
authored
Oct 26, 2006
by
Wichert Akkerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a TAL attribute test
parent
22c94db4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
lib/python/Products/PageTemplates/tests/input/Attributes.html
...python/Products/PageTemplates/tests/input/Attributes.html
+7
-0
lib/python/Products/PageTemplates/tests/output/Attributes.html
...ython/Products/PageTemplates/tests/output/Attributes.html
+7
-0
lib/python/Products/PageTemplates/tests/testHTMLTests.py
lib/python/Products/PageTemplates/tests/testHTMLTests.py
+3
-0
No files found.
lib/python/Products/PageTemplates/tests/input/Attributes.html
0 → 100644
View file @
bd64cd26
<html>
<head></head>
<body>
<p
tal:attributes=
"disabled python:True and default or 'disabled'"
></p>
<p
tal:attributes=
"disabled python:False and default or 'disabled'"
></p>
</body>
</html>
lib/python/Products/PageTemplates/tests/output/Attributes.html
0 → 100644
View file @
bd64cd26
<html>
<head></head>
<body>
<p></p>
<p
disabled=
"disabled"
></p>
</body>
</html>
lib/python/Products/PageTemplates/tests/testHTMLTests.py
View file @
bd64cd26
...
...
@@ -156,6 +156,9 @@ class HTMLTests(unittest.TestCase):
self
.
assert_expected
(
self
.
folder
.
t
,
'CheckI18nTranslateHooked.html'
)
setGlobalTranslationService
(
old_ts
)
def
checkAttributes
(
self
):
self
.
assert_expected
(
self
.
folder
.
t
,
'Attributes.html'
)
def
test_suite
():
return
unittest
.
makeSuite
(
HTMLTests
,
'check'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment