Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8318113

CSS.BackgroundImage doesn't implement equals

XMLWordPrintable

      The implementation of equals method was added JDK-7083187 to most of CSS.CssValue classes, but CSS.BackgroundImage doesn't implement equals.

      Steps to reproduce:

      Add these strings into EQUALS arrays in the javax/swing/text/html/CSS/4765271/CSSAttributeEqualityBug.java test:

                  "background-image: none",
                  "background-image: url(image.png)",

      The test fails:

      background-image=none is not equal to background-image=none
      background-image=url(image.png) is not equal to background-image=url(image.png)
      Exception in thread "main" java.lang.RuntimeException: The test failed: 2 failure(s) detected: background-image=none is not equal to background-image=none
              at CSSAttributeEqualityBug.main(CSSAttributeEqualityBug.java:122)

            psadhukhan Prasanta Sadhukhan
            aivanov Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: