From 825c358f73dc6369083301753367ab2432d89b46 Mon Sep 17 00:00:00 2001 From: "sebastianzartner@gmx.de" Date: Wed, 29 Jun 2011 08:12:55 +0000 Subject: [PATCH] [tests] Automated test case for issue 4542 (Quotes Issue With JavaScript Function Calls Inside Inline Event Handlers) http://code.google.com/p/fbug/issues/detail?id=4542 Removed old manual test case git-svn-id: http://fbug.googlecode.com/svn@11161 e969d3be-0e28-0410-a27f-dd5c76401a8b --- .../branches/1.8/html/4542}/issue4542.html | 28 ++++--- .../branches/1.8/html/4542/issue4542.js | 75 +++++++++++++++++++ tests/content/testlists/firebug1.8.html | 1 + 3 files changed, 92 insertions(+), 12 deletions(-) rename tests/{html => content/branches/1.8/html/4542}/issue4542.html (59%) create mode 100644 tests/content/branches/1.8/html/4542/issue4542.js diff --git a/tests/html/issue4542.html b/tests/content/branches/1.8/html/4542/issue4542.html similarity index 59% rename from tests/html/issue4542.html rename to tests/content/branches/1.8/html/4542/issue4542.html index f47b57e84..5ad86d2ac 100644 --- a/tests/html/issue4542.html +++ b/tests/content/branches/1.8/html/4542/issue4542.html @@ -16,7 +16,9 @@

Issue 4542
- +
@@ -25,24 +27,26 @@

Steps to reproduce

  1. Open Firebug
  2. Switch to the HTML panel
  3. -
  4. Inspect the input field above (#input)
  5. -
  6. Click on the value of the onkeydown attribute to start editing
  7. +
  8. Inspect the button above (#sayHi)
  9. +
  10. Click on the value of the onclick attribute to start editing
  11. Move the text cursor between the opening bracket and output of getElementById(output')
  12. -
  13. Enter a single quote (')
  14. -
  15. Move the text cursor before the H of Hey
  16. -
  17. Enter a double quote (")
  18. +
  19. + Enter a single quote (')
    + ⇒ The single quote is entered into the input field +
  20. +
  21. Move the text cursor before the H of Hi
  22. +
  23. + Enter a double quote (")
    + ⇒ The double quote is entered into the input field +
  24. Focus the input field on the page and type a

Expected Result

    -
  • After step 6: The single quote is entered into the input field
  • -
  • After step 8: The double quote is entered into the input field
  • -
  • After step 9: Hey, you entered something into the input field! shown below the input field
  • +
  • Hi there, tester! shown below the button
-
- Gabriel Nahmias, nahmias.gabriel at gmail.com -
+
\ No newline at end of file diff --git a/tests/content/branches/1.8/html/4542/issue4542.js b/tests/content/branches/1.8/html/4542/issue4542.js new file mode 100644 index 000000000..732e9e437 --- /dev/null +++ b/tests/content/branches/1.8/html/4542/issue4542.js @@ -0,0 +1,75 @@ +function runTest() +{ + FBTest.sysout("issue4542.START"); + FBTest.openNewTab(basePath + "html/4542/issue4542.html", function(win) + { + FBTest.openFirebug(); + var panel = FBTest.selectPanel("html"); + + FBTest.selectElementInHtmlPanel("sayHi", function(node) + { + var attributes = node.querySelectorAll(".nodeAttr"); + var i; + + hasOnClickAttribute = false; + for (i=0; i