| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 The LUCI Authors. All rights reserved. | |
| 2 // Use of this source code is governed under the Apache License, Version 2.0 | |
| 3 // that can be found in the LICENSE file. | |
| 4 | |
| 5 package settings | |
| 6 | |
| 7 import ( | |
| 8 "github.com/luci/luci-go/milo/api/resp" | |
| 9 "github.com/luci/luci-go/server/templates" | |
| 10 ) | |
| 11 | |
| 12 // TestableSettings is a subclass of Settings that interfaces with | |
| 13 // TestableHandler and includes sample test data. | |
| 14 type TestableSettings struct{ Settings } | |
| 15 | |
| 16 // TestData returns sample test data. | |
| 17 func (s TestableSettings) TestData() []TestBundle { | |
| 18 return []TestBundle{ | |
| 19 { | |
| 20 Description: "Settings", | |
| 21 Data: templates.Args{ | |
| 22 "Settings": &resp.Settings{ | |
| 23 ActionURL: "/post/action", | |
| 24 Theme: &resp.Choices{ | |
| 25 Choices: GetAllThemes(), | |
| 26 Selected: "bootstrap", | |
| 27 }, | |
| 28 }, | |
| 29 "XsrfToken": "thisisatoken", | |
| 30 }, | |
| 31 }, | |
| 32 } | |
| 33 } | |
| OLD | NEW |