Advertisement
Guest User

Untitled

a guest
Nov 11th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. replaceafill@system76:~/dev/sandboxes/fixes/schooltool$ bzr diff
  2. === modified file 'src/schooltool/app/browser/stests/server_tabs.txt'
  3. --- src/schooltool/app/browser/stests/server_tabs.txt 2012-03-24 04:24:38 +0000
  4. +++ src/schooltool/app/browser/stests/server_tabs.txt 2013-11-06 04:08:19 +0000
  5. @@ -34,7 +34,8 @@
  6. setting for the default tab. We do not allow control over the Server and
  7. School tabs.
  8.  
  9. - >>> print manager.query_all.xpath('//div[@class="body"]//input[@type="radio"]')
  10. + >>> for input in manager.query_all.xpath('//div[@class="body"]//input[@type="radio"]')[:2]:
  11. + ... print input
  12. <input name="default_tab" type="radio" value="home" />
  13. <input checked="checked" name="default_tab" type="radio" value="calendar" />
  14.  
  15. @@ -43,7 +44,8 @@
  16. disabled because we can't allow a tab to be hidden if it is currently the
  17. default tab.
  18.  
  19. - >>> print manager.query_all.xpath('//div[@class="body"]//input[@type="checkbox"]')
  20. + >>> for input in manager.query_all.xpath('//div[@class="body"]//input[@type="checkbox"]')[:2]:
  21. + ... print input
  22. <input checked="checked" name="visible:list" type="checkbox" value="home" />
  23. <input checked="checked" disabled="disabled" name="visible:list" type="checkbox" value="calendar" />
  24.  
  25. @@ -52,7 +54,8 @@
  26. checkbox enabled.
  27.  
  28. >>> manager.query.xpath('//div[@class="body"]//input[@type="radio"][@value="home"]').click()
  29. - >>> print manager.query_all.xpath('//div[@class="body"]//input[@type="checkbox"]')
  30. + >>> for input in manager.query_all.xpath('//div[@class="body"]//input[@type="checkbox"]')[:2]:
  31. + ... print input
  32. <input checked="checked" disabled="disabled" name="visible:list" type="checkbox" value="home" />
  33. <input checked="checked" name="visible:list" type="checkbox" value="calendar" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement