Restoration Comedy was the result of a revival of the theatre 1660, aftering being banned during the Puritan days of England.
The genre was quite raunchy for the time, and mocked many elements of contemporary British society, like Wilde's play did. It also did not attempt to impose a morality on its works, preferring rather to create art for the sake of art, like The Importance of Being Earnest.