In United States patent law, the flash of genius doctrine was a test for patentability used by the United States Federal Courts for just over a decade, beginning circa 1940.